cancel
Showing results for 
Search instead for 
Did you mean: 

UploadCollection: Delete the attached files.

agrawalaadhar8
Participant
0 Kudos
2,259

Hi All,

I am using one UploadCollecition control since I need to add one file for upload to my app and in the end, i.e. when user press Approve button, only then the file upload is done.

How can I limit the number of files uploaded since I only want one file to be uploaded.

Also I tried in the Change event of UploadCollection by comparing the length and if GE 1, delete the file in frontend only but couldn't figure out.

Please Help..

Thanks

View Entire Topic
anudeep_paleru
Explorer

Hi ,

Below works exactly same as Upload Collection but with File Uploader.

<u:FileUploader style="Emphasized" uploadUrl="/EntitySet" id="fileUploader" name="myFileUpload" buttonText="Upload" buttonOnly="true" change="handleFileValueChange" uploadOnChange="false" uploadComplete="handleFileUploadComplete"/>

agrawalaadhar8
Participant
0 Kudos

Will try that.

I need to upload the file only when Approve button is clicked and before that the user may upload same/different file several times, so will it take only the last file?