spacer spacer
spacer

uploadify - file creation / modification date using uploadify php jquery uploadify.com
23.10.2012


    $(document).ready(function() {
      $('#file_upload').uploadify({
        'swf'  			: 'uploadify.swf',
        'uploader'    	: 'uploadify.php',
		'method'   		: 'post',
		'formData'      : {'creationDate' : 0},
        'auto'      	: true,
		'multi'     	: true,
		'buttonText' 	: 'Bilder hochladen',
		'onUploadStart'		: function (file) {  $("#file_upload").uploadify("settings", "formData", {"creationDate": file.creationdate}); },
		'onUploadError'       : function (event,ID,errorObj) { alert(errorObj.type + ' Error: ' + errorObj.info); },
		'onUploadComplete'    : function(event, ID, response, data) { if(typeof(response)!="undefined" && response!="1") { alert(response); return true; } return true;  },
		'onQueueComplete' : function(event,data) { window.location='index.php' }	
      });
    });

you can then retrieve the value in your uploadify.php script with $_POST['creationDate']

use file.modificationdate if you want the modified date rather than the creationdate.
Vienna @ -1,0 °C [4,6m/s]
this site was rendered in 0.50457 seconds with a total # of 13 754 651 sites so far.
669621 of which came from registered users. Impressum @ u2.hax.at