存储文件到命令行filepicker.io? [英] store files to filepicker.io from the command line?

查看:144
本文介绍了存储文件到命令行filepicker.io?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一大堆的文件,我想他们都推到filepicker和使用各种转换选项来操纵它们。

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

我如何自动完成这一过程?有没有办法做到这一点的JavaScript之外与传统的脚本语言,我可以在命令行中运行?

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?

推荐答案

要做到这一点的方法是作为一个POST / API /存储/ S3与文件的内容。例如

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'

有执行类似的动作的其他工具,例如 https://github.com/uams/geturl,但他们使用的机制(发布到/ API /路径/存储)是过时的。

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.

总之,你可以使用这个功能,但是网址可能会改变。我们用/ API /存储/ [商]的语法很高兴,但发布前可能会改变。

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

这篇关于存储文件到命令行filepicker.io?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆