Welcome Guest Search | Active Topics | Sign In | Register

Upload doesnt start Options
Ben Williamson
Posted: Wednesday, September 28, 2011 1:02:03 PM
Rank: Newbie
Groups: Member

Joined: 8/30/2011
Posts: 3
I have implemented the ajaxuploader into a page which is launched by an iframe. This generally works but every now and then (i can't recreate it consistently) the upload doesnt automatically start after a file is selected.

I was thinking maybe this is an issue with Javascript of some kind not being loaded in time, but it could be something else. Any ideas?
eo_support
Posted: Wednesday, September 28, 2011 1:13:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I would not think having the uploader inside an iframe is a good idea but I can not think of any reason why it would not start either. The script should have already been correctly loaded, otherwise you will not be able to select a file at all.

One thing you can check is whether the problem always occur with particular files. The uploader can restrict type of files it will accept and it won't start if you select a file that's not allowed (for example, if you only allow to upload image files, then it won't take exe files). However by default it should show you an error message.

In any case, you can try to move the uploader outside of the iframe and see if the problem occurs, and of course, if you can find the way to reproduce the problem, then we should be able to tell you exactly what's happening.

Thanks!
Ben Williamson
Posted: Wednesday, September 28, 2011 1:42:08 PM
Rank: Newbie
Groups: Member

Joined: 8/30/2011
Posts: 3
Thanks for your reply!

I'm afraid it has to be in an iframe. Our site is PHP and we are launching a asp.net page for uploading files.

Is there a way I can PM you a link (i'd rather not post it publicly) so you can see what is happening? It happens frequently now, but I'm not sure why...

eo_support
Posted: Wednesday, September 28, 2011 1:49:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

What I was suggesting is to taking it out of the iframe just for the purpose of determining whether it has to do with iframe or not. We usually can not find much for this kind of problem on live site because we can not debug it against our source code. However if you can create a separate minimum website that can duplicate the problem, we will be happy to take a look. Once we have that, we will run it in our debug environment. As soon as we can see the problem in our debug environment, we should be able to find out what's going on.

Thanks!
Ben Williamson
Posted: Wednesday, October 5, 2011 3:00:27 PM
Rank: Newbie
Groups: Member

Joined: 8/30/2011
Posts: 3
THanks, I have taken it out of the iframe and the issue still occurs. I have put together a small website project for you - how can I send it to you?
eo_support
Posted: Wednesday, October 5, 2011 4:35:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You are welcome. We have replied you via private message. You can click the "Inbox" at the top of the forum to view the message.

Thanks!
eo_support
Posted: Wednesday, October 5, 2011 8:52:39 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have received the test project but we can not reproduce the problem. However the problem you described is possible if you browse the file BEFORE the page is being fully loaded. This occurs because the uploader executes certain initialization code inside window.onload event. If you browse file before that event is fired, then the uploader has not been initialized and will not work properly.

To avoid this problem, you may want to implement code to display the uploader only after window.onload has been called. You can also use a timer to call the uploader's isLoaded() method to check whether it has been fully initialized, then only display the uploader after it has been fully initialized.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.