javascript - is filepicker.io store files on s3 twice? -


filepicker.pick() store file on s3 (root directory). if later call filepicker.store() file copied new location @ end have same file twice in 2 different locations 2 different filenames. how avoid this?

i select 2 files separately, upload them s3 @ once when form processed.

  filepicker.pick({container: "modal"}, function(fpfile) {     alert("picked"); //file stored on s3     filepicker.store(fpfile, { location: "s3", path: "tmp/"}); //will copy "tmp/" location   }); 

in order give url on fpfile object when using filepicker.pick , uploading computer, have upload file onto s3. other services facebook, don't transfer file s3, instead give url resolves directly facebook file.

if want, can either use filepicker.pickandstore, resolves automatically, or use filepicker.remove() call.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -