I've been playing with uploadify and I'm trying upload a file to a remote server. I'll explain better...
I've 2 servers: A and B. The website runs on server A and the images are hosted on server B (it's a photography website). Users can upload their photos (which can be very large) and when a user submits a new photo, it is uploaded to server A and then, using FTP, it's transfered to to server B.
What I would like to be able to do is to skip the FTP step. So, I would like to upload the users' file directly to server B. is it possible with uploadify? I've tried to specify a remote upload script (http://[domain]/upload.php) but I get an error saying that the script path should be relative.
Can somebody give an hint on how to implement this?
Love the tool so far, very good work, but I'm developing an opensocial application, that is, or has to be on 2 servers, an application server and the network hosting the gadget itself. So it would be fantastic to upload to the remote server, but i guess it might be a security risk the flash player restricts automatically. But is it possible anyways?
Technically it should be possible. Although I haven't tried. First what you need is a cross domain xml file. You can find info on this through google and adobe's website. Next as uploadify is currently set up to use relative paths, you will need to clear the pagePath variable in the uploadify js file. It should then work. The cross domain xml is part of adobe's flash security not Uploadify. If it works without it then great, but the docs state it wont work without it.