Forum Moderators: open
Sorry if this is very obvious but I just need someone to point me to right place. Nearly all examples I have seen use uploading to a server which I dont think I want - or do I? Thanks,Shumit
<form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
Can't be done, this is a security issue. Imagine if you could read:
C:\\My Documents\my-sensitive-data\myfile.txt
You could potentially use the path to snoop the client computer, very bad. All the browsers supply is the filename from the input type=file.