简体   繁体   English

从一个域上另一个域上载文件

[英]Upload files from one domain on another domain

I need that when a user uploads a file then the file gets stored on a folder on an another domain. 我需要在用户上传文件时将文件存储在另一个域的文件夹中。 I need to upload files from one domain on another domain. 我需要从一个域上的另一个域上载文件。 From www.uploadto.com/ to www.uploadedfiles.com/uploadedfiles I have a simple php website . 从www.uploadto.com/到www.uploadedfiles.com/uploadedfiles,我有一个简单的php网站。 The user uploads files and images using that website . 用户使用该网站上载文件和图像。 But at the back-end I need to store the images in a folder on some other domain which is on the same server. 但是在后端,我需要将图像存储在同一服务器上其他某个域的文件夹中。 How do I do it? 我该怎么做? Please help. 请帮忙。 I have my website hosted on Linux Apache server . 我的网站托管在Linux Apache服务器上。 I have given the whole path including the username in the move_uploaded_file parameters. 我已经在move_uploaded_file参数中给出了包括用户名在内的整个路径。 But am getting permissions error? 但是出现权限错误吗?

您可以使用jquery uploadify将文件上传到图像服务器,然后将URL获取到另一台服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM