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 @ 16,6 °C [5,7m/s]
this site was rendered in 0.06056 seconds with a total # of 22 167 936 sites so far.
676048 of which came from registered users. Impressum @ u2.hax.at