Remote Upload

info2862

New Member
YetiShare User
Aug 9, 2013
43
0
0
Hi,

I've set up a remote server and the upload is working. However, since the new version, whenever I use the remote upload feature the upload animation never finishes, but the upload finishes. What's causing this?

Feel free to test on my server: http://www.downloading.co
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
The issue is a restriction when it's trying to remote upload directly to your remote file server. The error I see is:

Code:
NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN: Illegal document.domain value
The code outputs this on both servers to override any cross site restrictions:

Code:
document.domain = 'www.downloading.co';
It may be because it starts with a www that it's failing. Can you try testing it by amending _indexJS.inc.php on both servers? Find this:

Code:
document.domain = '<?php echo _CONFIG_CORE_SITE_HOST_URL; ?>';
Replace with this:

Code:
document.domain = '<?php echo str_replace("www.", "", _CONFIG_CORE_SITE_HOST_URL); ?>';
 

info2862

New Member
YetiShare User
Aug 9, 2013
43
0
0
Same problem. Additionally I noticed if I try remotely uploading multiple files, sometimes only one is transferred or even none. Example files I'm using:
http://192.241.177.15/Nexus5/4.4/zips/franco.Kernel-nightly-r16.zip
http://192.241.177.15/Nexus5/4.4/zips/franco.Kernel-nightly-r17.zip
http://192.241.177.15/Nexus5/4.4/zips/franco.Kernel-nightly-r18.zip
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Are you able to upgrade to the v3.4, it'll probably solve a lot of the issues.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Sorry I got my forums threads mixed up. Can you send me temp access (FTP and script admin) via the contact form above and I'll run some tests.