我想知道是否有人知道是否可以使用 cURL 操作 Aurigma 图像上传器。基本上我需要做的是传输上传到我的网站的图像(不使用 aurigma),并使用 Web 脚本(我假设 cURL)将这些照片发送到受密码保护但使用 Aurigma Image Uploader 接收的另一个网站照片。因此,我需要能够导航到桌面上正确的上传文件夹,然后选择该文件夹中的所有照片,然后上传它们。我无法使用 POST 直接连接到服务器,因此该选项是不可能的。因此,任何有关如何实现这一目标的建议都会很棒。谢谢。
编辑
解释需要发生的过程。站点/服务器 1 接收用户使用通用图像上传脚本上传到它的图像。站点/服务器 2 接收通过 Aurigma 图像上传器上传到它的图像。我的问题是是否可以创建一个脚本将服务器1上收到的图像直接传输到服务器2?该脚本将查看服务器 1 上上传的图像,然后浏览服务器 2 上的密码保护,导航到要上传的站点区域,然后使用站点安装的 Aurigma Image uploader 选择上传到服务器 1 的图像,选择它们,然后使用 aurigma 图像上传器将它们上传到服务器 2。
我无法通过 POST 方法直接访问服务器,这就是为什么我需要使用创建的脚本基本上遍历站点,然后让脚本根据上传到服务器 1 的内容控制哪些图片上传到服务器 2。清除为泥? :)
I'm wondering if anyone knows if manipulating the Aurigma Image Uploader using cURL is possible. Basically what I need to do is transfer images that are uploaded to my site (not using aurigma), and using web scripting (I'd assume cURL) send those photos to another site that is password protected but that uses Aurigma Image Uploader to receive photos. So I would need to be able to navigate to the correct upload folder on my desktop, then select all the photos in that folder and then upload them. I can't connect to the server directly using POST, so that option is out of the question. So any advice on how to accomplish this would be great. Thanks.
EDIT
To explain the process that needs to happen. Site/Server 1 receives images that are uploaded to it from users using a generic image uploading script. Site/Server 2 receives images that are uploaded to it via the Aurigma Image uploader. My question is whether a script can be created to transfer directly the images received on Server 1 to server 2? The script would see the uploaded images on server 1 and then navigate through the password protection on server 2, navigate to the area of the site to upload, then use the site's installation of Aurigma Image uploader to choose the images that were uploaded to server 1, select them, then upload them to server 2 using the aurigma image uploader.
I cannot access the server directly through POST methods, that is why I need to basically walk through the site using a created script, then have the script control which pictures to upload to server 2 based on what was uploaded to server 1. Clear as mud? :)
发布评论
评论(1)
如果我理解正确的话,您想要将照片从服务器 1(使用“网络脚本”上传图像)上传到服务器 2(“另一个受密码保护的网站” ')使用 Aurigma 图像上传器。 Image Uploader 不支持从 JavaScript 添加文件到上传列表,这样您就无法从代码中选择文件并启动上传。
Image Uploader 使用 HTTP POST 请求发送文件,因此您可以尝试形成与 Image Uploader API 兼容的自己的请求: POST 字段参考。
If I understand you right, you want to upload photos from server 1 (where you upload images using ‘web scripting’) to server 2 (‘another site that is password protected’) using Aurigma Image Uploader. Image Uploader does not support adding files to upload list from Java Script, this way, you cannot select files and initiate upload from your code.
Image Uploader sends files using HTTP POST requests, so you can try to form your own request compatible with Image Uploader API: POST Field Reference.