YS 3.4 : Url Uploader Progress missing!

mastern

New Member
YetiShare User
Apr 24, 2013
56
1
0
Hi Adam,

Just want to now how about the progress (3.4 feature) for URL Upload ? I see that there's still no progress text or bar in the 3.4. There's just the gif. spinner.
Or may i miss something about ?

Regards,
Maverick
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

There seems to be an issue with certain browsers and cross-domain iframe permissions, which this needs to track download progress. In _indexJS.inc.php, try removing this line:

Code:
document.domain = '<?php echo _CONFIG_CORE_SITE_HOST_URL; ?>';
Regards,
Adam.
 

mastern

New Member
YetiShare User
Apr 24, 2013
56
1
0
Hi Adam,

Thanks for the reply. removing this line of code causes a critical error for recents browsers and block the url upload process.
Here is the error when i remove it :

Code:
Uncaught SecurityError: Blocked a frame with origin "http://www.site.com" from accessing a frame with origin "http://www.site.com". The frame requesting access set "document.domain" to "www.site.com", but the frame being accessed did not. Both must set "document.domain" to the same value to allow access.---------- [b]urlUploadHandler[/b]
When i reput the code, all goes well excepting the progress text.

This is another strange bug to debug. It could be tough

Regards,
Maverick
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Yes that's the downside unfortunately. It's mainly when you use direct file servers the issue occurs. I'll spend a bit more time looking into it for the next release.