@@ -326,7 +326,7 @@ const interval = new Interval({
326
326
} ) ,
327
327
io . input . date ( 'Date input' , { disabled : true } ) ,
328
328
io . input . time ( 'Time input' , { disabled : true } ) ,
329
- io . experimental . input . file ( 'File input' , { disabled : true } ) ,
329
+ io . input . file ( 'File input' , { disabled : true } ) ,
330
330
] )
331
331
332
332
return 'Done!'
@@ -1052,23 +1052,20 @@ const interval = new Interval({
1052
1052
return { message : 'OK, notified!' }
1053
1053
} ,
1054
1054
upload : async ( io , ctx ) => {
1055
- const customDestinationFile = await io . experimental . input . file (
1056
- 'Upload an image!' ,
1057
- {
1058
- helpText : 'Will be uploaded to the custom destination.' ,
1059
- allowedExtensions : [ '.gif' , '.jpg' , '.jpeg' , '.png' ] ,
1060
- generatePresignedUrls : async ( { name } ) => {
1061
- const urlSafeName = name . replace ( / / g, '-' )
1062
- const path = `custom-endpoint/${ new Date ( ) . getTime ( ) } -${ urlSafeName } `
1055
+ const customDestinationFile = await io . input . file ( 'Upload an image!' , {
1056
+ helpText : 'Will be uploaded to the custom destination.' ,
1057
+ allowedExtensions : [ '.gif' , '.jpg' , '.jpeg' , '.png' ] ,
1058
+ generatePresignedUrls : async ( { name } ) => {
1059
+ const urlSafeName = name . replace ( / / g, '-' )
1060
+ const path = `custom-endpoint/${ new Date ( ) . getTime ( ) } -${ urlSafeName } `
1063
1061
1064
- return generateS3Urls ( path )
1065
- } ,
1066
- }
1067
- )
1062
+ return generateS3Urls ( path )
1063
+ } ,
1064
+ } )
1068
1065
1069
1066
console . log ( await customDestinationFile . url ( ) )
1070
1067
1071
- const file = await io . experimental . input . file ( 'Upload an image!' , {
1068
+ const file = await io . input . file ( 'Upload an image!' , {
1072
1069
helpText :
1073
1070
'Will be uploaded to Interval and expire after the action finishes running.' ,
1074
1071
allowedExtensions : [ '.gif' , '.jpg' , '.jpeg' , '.png' ] ,
0 commit comments