store files to filepicker.io from the command line?

白昼怎懂夜的黑 提交于 2019-12-23 01:58:20

问题


I have a bunch of files, I'd like to push them all to filepicker and use various convert options to manipulate them.

How do I automate this process? Is there a way to do this outside of javascript with a traditional scripting language I can run from the command line?


回答1:


The way to do this is as a POST to /api/store/S3 with the contents of the file. For instance

curl -F fileUpload=@test.html 'https://www.filepicker.io/api/store/S3?key={{apikey}}&filename=myCoolFile.html'

There are other tools that perform similar actions, such as https://github.com/uams/geturl, but the mechanism they use (posting to /api/path/storage) is out of date.

Overall, you can use this functionality, but the urls may change. We're fairly happy with the /api/store/[provider] syntax, but may change before release



来源:https://stackoverflow.com/questions/14115280/store-files-to-filepicker-io-from-the-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!