Upload new version with name of new version file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2014 10:39 AM
Hi,
If i upload a new version of the document it is getting uploaded with the file name of previous version.
I want the file name of the new version doc not the 1st version.
Suggest !
Thanks
If i upload a new version of the document it is getting uploaded with the file name of previous version.
I want the file name of the new version doc not the 1st version.
Suggest !
Thanks
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2014 11:05 PM
You can try modify the upload.post.js file.
You will find below code snippet in above file where uploading new version is handled.
//////////////////////
/**
* Exitsing file handling.
*/
var existingFile = destNode.childByNamePath(filename);
////////////////////////
Here you can handle the file name.
Hope this helps.
You will find below code snippet in above file where uploading new version is handled.
//////////////////////
/**
* Exitsing file handling.
*/
var existingFile = destNode.childByNamePath(filename);
////////////////////////
Here you can handle the file name.
Hope this helps.