Rename file with uploadify
Posted
by Chaofix
on Stack Overflow
See other posts from Stack Overflow
or by Chaofix
Published on 2009-11-06T06:29:03Z
Indexed on
2010/04/25
19:23 UTC
Read the original article
Hit count: 1039
Hi there
I'm using uploadify with asp and I want to change the file name to the current date+time when the file is complete.
Is there any way to do it?
this is my JS code:
$('#fileUploadJquery').uploadify({
'uploader' : 'Shared/ClientScripts/Uploadify/uploadify.swf',
'cancelImg' : 'Shared/ClientScripts/Uploadify/cancel.png',
'rollover' : false,
'script' : 'Shared/ClientScripts/Uploadify/upload.asp',
'folder' : 'Uploads',
'fileDesc' : 'Image Files',
'fileExt' : '*.jpg;*.gif;*.bmp;*.png',
'auto' : true,
'wmode' : 'transparent',
onComplete : function (event, queueID, fileObj, response, data) {
//$('#fileUpload').val(fileObj.name);
alert(queueID)
}
Please advice
© Stack Overflow or respective owner