Restrict to upload in new version with different file name and extension.

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

Restrict to upload in new version with different file name and extension.

Hello Everyone,

          The current system is allowing any file to be downloaded, and in its place, is allowing the upload of any file (whether or not the same name, whether or not the same format). For instance, I downloaded a doc file and uploaded a different image file, with a different name and it’s still accepting it and giving it a version number too!

The application should accept only if latest version is uploaded with the exact file name and type...please help to solve this issue.

                        

                      Thanks in Advance

Regards

Leela N

2 Replies
Advanced II

Re: Restrict to upload in new version with different file name and extension.

Hello.

That is the way Share is supposed to work.

If you need it to behave differently, you will have to customize it, and this will require you to write some code.

Maybe it would be a good idea to start reading about Behaviours, and then use it to write the verification you need, forcing it to rollback if the required condition is not met.

Active Member II

Re: Restrict to upload in new version with different file name and extension.

Thanks for your response, can i use java script for validation..?? if  yes,  which file can i work for validation (like upload.js file or flash-upload.js).