This is a migrated thread and some comments may be shown as answers.

Thumbnail URL called before upload completed

1 Answer 50 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Christina
Top achievements
Rank 1
Christina asked on 03 Jun 2013, 02:08 PM
Hi,

I am using the image browser to upload relatively small images (ie 500k) to the filesystem. I have a process whereby the file is uploaded, the MVC controller saves this image to a particular place with a particular name (a GUID). It then returns the JSON result with the new name of the image. This process works perfectly on a local development machine. However, when I deployed this to our test environment, the image was uploaded, but the thumbnail stayed on the swirling ajax loading image.

I've since found that by debugging on my development machine (and therefore slowing down the process) that the ThumbnailUrl gets called before the image has finished uploading. It also gets called with the original name of the file, which is obviously no good for me, as I have changed the name of the file during saving. When this process happens in quicker succession on my local machine, everything gets called at the right time, with the right parameters.

Is there anyway to delay the call to the thumbnailurl call to ensure the upload has completed? Currently I'm having to close the image browser window and reopen so that it loads the thumbnails correctly.

Thanks

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 05 Jun 2013, 06:31 AM
Hi Christina,

There was a similar issue with older version of KendoUI. Therefore, could you please make sure you are using the latest (Q1 SP1 2013) version.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Christina
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or