Jump to content

Problem uploading a file


jasper182

Recommended Posts

I am currently working on a simple file uploader for a site I've been messing around with, and I'd like to read the information from the uploaded file immediately, [i][b]without [/b][/i]storing the uploaded file on my server.  However, after looking around I've been unable to find any real help on this.  I use a standard uploader:

<form enctype="multipart/form-data" action="uploadFile.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

I can get the temp file name, but when I try to fopen it, it only prints out something like "Resourse id#3" or something like that.  If you could help me out or something I'd really appreciate it.
Link to comment
https://forums.phpfreaks.com/topic/33692-problem-uploading-a-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.