@@ -244,7 +244,7 @@ const interval = new Interval({
244
244
} ) ,
245
245
io . input . date ( 'Date input' , { disabled : true } ) ,
246
246
io . input . time ( 'Time input' , { disabled : true } ) ,
247
- io . experimental . input . file ( 'File input' , { disabled : true } ) ,
247
+ io . input . file ( 'File input' , { disabled : true } ) ,
248
248
] )
249
249
250
250
return 'Done!'
@@ -971,23 +971,20 @@ const interval = new Interval({
971
971
return { message : 'OK, notified!' }
972
972
} ,
973
973
upload : async ( io , ctx ) => {
974
- const customDestinationFile = await io . experimental . input . file (
975
- 'Upload an image!' ,
976
- {
977
- helpText : 'Will be uploaded to the custom destination.' ,
978
- allowedExtensions : [ '.gif' , '.jpg' , '.jpeg' , '.png' ] ,
979
- generatePresignedUrls : async ( { name } ) => {
980
- const urlSafeName = name . replace ( / / g, '-' )
981
- const path = `custom-endpoint/${ new Date ( ) . getTime ( ) } -${ urlSafeName } `
974
+ const customDestinationFile = await io . input . file ( 'Upload an image!' , {
975
+ helpText : 'Will be uploaded to the custom destination.' ,
976
+ allowedExtensions : [ '.gif' , '.jpg' , '.jpeg' , '.png' ] ,
977
+ generatePresignedUrls : async ( { name } ) => {
978
+ const urlSafeName = name . replace ( / / g, '-' )
979
+ const path = `custom-endpoint/${ new Date ( ) . getTime ( ) } -${ urlSafeName } `
982
980
983
- return generateS3Urls ( path )
984
- } ,
985
- }
986
- )
981
+ return generateS3Urls ( path )
982
+ } ,
983
+ } )
987
984
988
985
console . log ( await customDestinationFile . url ( ) )
989
986
990
- const file = await io . experimental . input . file ( 'Upload an image!' , {
987
+ const file = await io . input . file ( 'Upload an image!' , {
991
988
helpText :
992
989
'Will be uploaded to Interval and expire after the action finishes running.' ,
993
990
allowedExtensions : [ '.gif' , '.jpg' , '.jpeg' , '.png' ] ,
0 commit comments