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

Relative path in web.config for temporary upload path

2 Answers 798 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Roland Klug
Top achievements
Rank 1
Roland Klug asked on 13 Apr 2015, 12:26 PM

Hi,

I try to set a relative path for the temporary upload path, but I'm not know what's wrong.

<add key="Telerik.AsyncUpload.TemporaryFolder" value="/upload/_temp" />
leads to: 'C:\upload\_temp\RadUploadTestFile'

<add key="Telerik.AsyncUpload.TemporaryFolder" value="upload/_temp" />
leads to: 'C:\inetpub\twoeyes_intranet_beta\documentruler\upload\_temp\RadUploadTestFile'

The first example seems to ignore the MapPath which is: 'C:\inetpub\twoeyes_intranet_beta\'
The second example shows an expected behaviour.

Best regards,
Roland

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Valyavicharski
Telerik team
answered on 16 Apr 2015, 07:27 AM
Hi Roland,

Try this

<add key="Telerik.AsyncUpload.TemporaryFolder" value="~/upload/_temp" />

Does it help? 

Regards,
Hristo Valyavicharski
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Roland Klug
Top achievements
Rank 1
answered on 20 Apr 2015, 09:27 AM

Yes it helps. Thank you very much.

Best regards,
Roland

Tags
AsyncUpload
Asked by
Roland Klug
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Roland Klug
Top achievements
Rank 1
Share this question
or