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

[Solved] Arbitrary URL for async Upload

3 Answers 48 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 03 Aug 2011, 09:37 AM
Hi there,

is there a way to upload files asynchronous to another domain with your upload control?
I thought about something like the following:
@(Html.Telerik().Upload()
.Name("file")
.Async(builder =>
    builder.AutoUpload(true)
But this doesn't work. How could I alternatively solve this?

Thanks for your help!

3 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 04 Aug 2011, 07:50 AM
Hello Martin,

I'm posting the reply to your support ticket here for community reference.


The Upload does not support uploading files to a different domain.

It can technically send files to another domain, but only when the browser supports the File API and the other domain has a configured CORS (an Access-Control-Allow-Origin header at minimum). This rules out IE, Opera and old versions of FF.

But we can't have a feature that does not work in all supported browsers.

I hope this sheds some light on the issue.

Regards,
Tsvetomir Tsonev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

0
Johan
Top achievements
Rank 1
answered on 18 Jan 2012, 07:03 PM
Some of us use our own internal routing helpers that add in security context items in the background. For this, we need to be able to specify the url (which would be local), using our own routing methods.
0
T. Tsonev
Telerik team
answered on 20 Jan 2012, 10:59 AM
Hello,

If you manage to integrate your helpers as part of the standard MVC routing then you'll be in the clear.

We'll consider adding a SaveUrl option for cases where this is not possible. 

Regards,
Tsvetomir Tsonev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Upload
Asked by
Martin
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Johan
Top achievements
Rank 1
Share this question
or