Asyncupload! How to upload the image to the remote computer's folder

0 Answers 88 Views
AsyncUpload
Colin
Top achievements
Rank 1
Iron
Colin asked on 22 Mar 2023, 09:04 AM
Please help me, I have no idea how to upload the images form local computer to the remote computer's folder. I don't know how to write the code about the remote folder' path   on "TargetFolder" and how to test it whether it uploaded correctly. Please give me an example. Thanks very much!
<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="AsyncUpload1" AllowedFileExtensions="jpeg,jpg,gif,png,bmp" OnClientFileUploading="OnClientFileUploading" OnClientValidationFailed="onClientValidationFailed"  MaxFileInputsCount="1" 
TargetFolder="" > 
</telerik:RadAsyncUpload>

Rumen
Telerik team
commented on 24 Mar 2023, 12:20 PM

Hi Colin,

To upload images from your local computer to a remote computer's folder using RadAsyncUpload, you need to specify the path to the target folder on the remote computer in the "TargetFolder" property of the control. Here's an example code snippet:

<telerik:RadAsyncUpload RenderMode="Lightweight" runat="server" ID="AsyncUpload1" AllowedFileExtensions="jpeg,jpg,gif,png,bmp" OnClientFileUploading="OnClientFileUploading" OnClientValidationFailed="onClientValidationFailed"  MaxFileInputsCount="1" 
TargetFolder="\\RemoteComputerName\SharedFolderName\Images"> 
</telerik:RadAsyncUpload>

In this example, "RemoteComputerName" is the name of the remote computer and "SharedFolderName" is the name of the shared folder where you want to upload the images. Replace these values with the actual names of the remote computer and shared folder you want to use.

You should also grand appropriate read and write permissions to the shared folder so that the ASP.NET process has access to it.

To test whether the images have been uploaded correctly, you can navigate to the remote computer and check the shared folder to see if the images are present.

You can find more information in this article: Web Farm and Load Balancing.

No answers yet. Maybe you can help?

Tags
AsyncUpload
Asked by
Colin
Top achievements
Rank 1
Iron
Share this question
or