ref
http://stackoverflow.com/questions/15201071/how-to-get-full-path-of-selected-file-on-change-of-input-type-file-using-javFor security reasons browsers do no allow this, ie JavaScript in browser has no access to the File System, however using HTML5 File API, only Firefox provides a mozFullPath property, but unfortunately if you try to get the value it returns an empty string:$('input[type=file]').change(function () {
console.log(this.files[0].mozFullPath);
});
http://jsfiddle.net/SCK5A/So don't waste your time.
du kan
ikke få fat i brugerens path. den eneste path du kan få er den på serveren, dvs hvor filen er lagt på serveren
citat
Jeg arbejder i øjeblikket ud fra nedenstående kode (der ikke kan tage de store filer).
Hvordan kan den tilpasses?
/citat
ref
http://stackoverflow.com/questions/2184513/php-change-the-maximum-upload-file-sizeYou need to set the value of upload_max_filesize and post_max_size in your php.ini :
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M