XUpload - Progress bar doesn't work if hostname (www) is not specified

Message
Author
pradeepserro
Posts: 3
Joined: May 16, 2007 4:39 pm

Progress bar doesn't work if hostname (www) is not specified

#1 Postby pradeepserro » May 16, 2007 4:47 pm

I have successfully installed the script and it works perfectly.
However, if you type http://a2zuploads.com in the url (without the www) the file uploads but the progress bar does not update !
I did however, notice that I get an error (on line 405) saying "Access Denied" (I'm trying the same using IE 6)
I'm at a loss as to why the hostname should cause an issue!
Please help !

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » May 17, 2007 5:23 am

That's JS security cross-domain issue. I think you specified absolute URLs in upload_form.html, you should use relative, like '/xupload/upload.cgi'

pradeepserro
Posts: 3
Joined: May 16, 2007 4:39 pm

#3 Postby pradeepserro » May 17, 2007 11:23 am

Bingo !
Your right... used relative path and the script works like a charm :D
I had used the full path, because I wanted to post to a page on another server.
I have servers like http://www.a2zuploads.com http://filehosting.a2zuploads.com http://uploadfiles.a2zuploads.com etc, and based on which server was the least used, I was posting the file for upload to that specific server. Hence, the fixed path.
Now, I'm simply redirecting the user to the specified server and then he selects and post his files for upload!

Thanks a lot.
Excellent Script!
Last edited by pradeepserro on May 18, 2007 7:33 am, edited 1 time in total.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » May 17, 2007 1:39 pm

Thanks. By the way: it's one of the nicest usage of XUpload, I like the scrolling effect. Good luck with site!