3

Can I upload files into a specific folder in an S3 bucket rather than just uploading into the base folder of the bucket?

CodingWithoutComments
  • 35,598
  • 21
  • 73
  • 86

1 Answers1

2

Yes, use the "path" parameter on the filepicker.store call.

filepicker.store(fpfile, {location:'S3', path:'myfolder/file.png'},
    function(stored_fpfile){
  console.log(stored_fpfile);
});

Documentation at https://developers.filepicker.io/docs/web/#store

brettcvz
  • 2,371
  • 1
  • 13
  • 14