Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Filepicker.io, uploading files into a folder in an S3 Bucket

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

like image 705
CodingWithoutComments Avatar asked Dec 21 '25 01:12

CodingWithoutComments


1 Answers

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

like image 80
brettcvz Avatar answered Dec 23 '25 11:12

brettcvz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!