Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8160
How to upload file in a different folder if we have multiple WebUpload controls?
posted

How to upload file in a different folder if we have multiple WebUpload controls, or how to modify the uploaded folder?

  • 8160
    posted

    WebUpload first uploads the file into the ~/Uploads folder, during the uploading process file has a temporary name. After it is uploaded the temporary name is changed with the real file name. You could handle OnUploadFinishing event, then cancel this event, at this the file is uploaded but it is with the temporary name. Cancelling the event will prevent file renaming. Set the file name manually and move/copy it into the desired folder on the server.


    Download Sample