Hi all,
I m trying to make an multi file upload by using RadAsyncUpload.
Project is working well on local but when i publish it, control does not include any uploaded file, so it does not enter the for loop and a exclamation mark appaers.
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" TargetFolder="~\AttachPath"
TemporaryFolder="~\App_Data\RadUploadTemp" AllowedFileExtensions="jpg,jpeg,png,gif">
</telerik:RadAsyncUpload>
protected void lnkara_Click(object sender, EventArgs e)
{
PopulateUploadedFilesList();
ConfigDataContext data = new ConfigDataContext();
if (!string.IsNullOrEmpty(dropfleet.SelectedValue))
{
for (int i = 0; i < RadAsyncUpload1.UploadedFiles.Count; i++)
{
CNF_FILE_PATH newfile = new CNF_FILE_PATH();
string path = ConfigurationManager.AppSettings["filePatch"] ;
newfile.FILE_PATH = path + RadAsyncUpload1.UploadedFiles[i].FileName;
newfile.REGISTRATION = dropfleetlist.SelectedItem.Text;
newfile.FLEET_ID = dropfleet.SelectedValue.ToInt();
data.CNF_FILE_PATHs.InsertOnSubmit(newfile);
data.SubmitChanges();
sucsessful.Visible = true;
}
}
}
8 Answers, 1 is accepted
Could you please open your page in FireFox, open the FireBug console and check what error code appears when the exclamation point shows. Then, please paste the code here so that we can troubleshoot the issue. Thank you.
Best wishes,
Genady Sergeev
the Telerik team

Uyarı: Unknown property 'zoom'. Declaration dropped.
Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
Hat: 562
Unknown property 'zoom'. Declaration dropped.
Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
Hat: 702
Unknown property 'zoom'. Declaration dropped.
Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
Hat: 702
Uyarı: Unknown property 'zoom'. Declaration dropped.
Kaynak dosya: http://config.thyteknik.com/WebResource.axd?d=v9z0Pv-rIurXEnB6TaVRAYfpaYVyLXbCRtVSrGyb8DR5MGIt3E_IZa8vyuv0VIps0&t=634248269300000000
Hat: 562
-----------------------------------
Server Error in '/' Application.
RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.UnauthorizedAccessException: RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
Stack Trace:
[UnauthorizedAccessException: RadAsyncUpload could not create App_Data\RadUploadTemp folder. Ensure the App_Data folder is writable or set the TemporaryFolder property to a writable location.] Telerik.Web.UI.RadAsyncUpload.CreateTempFolder() +75 Telerik.Web.UI.RadAsyncUpload.EnsureDefaultTemporaryFolderExists() +59 Telerik.Web.UI.RadAsyncUpload.OnPreRender(EventArgs e) +42 System.Web.UI.Control.PreRenderRecursiveInternal() +80 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 |
You are facing a permission error. Please, make sure that IIS is given rights to write to the App_Data folder.
Best wishes,
Genady Sergeev
the Telerik team


< add key="Telerik.AsyncUpload.TemporaryFolder" value="[path_to_the_temporary_folder]" />
If two users are uploading multiple files, all the files will be stored in this temporary folder. Does asyncupload remember which file belongs to user 1 and which files belong to user 2?
Yes, it is possible to determine, which file was uploaded from User1 and User2. Try to handle the OnFileUploaded event and save the file manually on the file system or inside a database. If is needed rename the file or add insert the user id in the database. For example:
User1 ID - 8d0c84f2-c169-4080-81f5-ff814e9d4da8
User2 ID - b26634f6-90cb-412e-97a3-0361a6f06ac7
File system:
8d0c84f2-c169-4080-81f5-ff814e9d4da8_photo.jpg
b26634f6-90cb-412e-97a3-0361a6f06ac7_photo.jpg
Database:
ID | Filename | UserID
----------------------------------------------------------------------------------
1 | photo.jpg | 8d0c84f2-c169-4080-81f5-ff814e9d4da8
----------------------------------------------------------------------------------
2 | photo.jpg | b26634f6-90cb-412e-97a3-0361a6f06ac7
----------------------------------------------------------------------------------
Regards,
Hristo Valyavicharski
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

question regarding setiing Target folder . In below mentioned url
http://docs.telerik.com/devtools/aspnet-ajax/controls/asyncupload/overview
it says we can specify the Target folder in config file. I have added key/value under configuration tag of webconfig file. am geting error.
Do i need to refernce this appsettings values in the code block or design block?
<
appSettings
>
<
add
key
=
"UploadFolder"
value
=
"C:\Uploads"
/>
<
add
key
=
"Telerik.ScriptManager.TelerikCdn"
value
=
"Disabled"
/>
<
add
key
=
"Telerik.StyleSheetManager.TelerikCdn"
value
=
"Disabled"
/>
<
add
key
=
"Telerik.Web.UI.DropDownTree.ExpandAnimation"
value
=
"None"
/>
<
add
key
=
"Telerik.AsyncUpload.TargetFolder"
value
=
"C:\t"
/>
</
appSettings
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadAsyncUpload1.TargetFolder = ConfigurationManager.AppSettings[
"UploadFolder"
];
}
Regards,
Hristo Valyavicharski
Telerik
Regards,
Hristo Valyavicharski
Telerik