in reply to Uploading Files (Win32)
Check if the following two things are valid in your script:
1. Your generated HTML form source must be multipart: <form ENCTYPE="multipart/form-data" etc.
2. If you're uploading a binary file, call the binmode(OUTFILE); function (example):
open (OUTFILE, ">>$file_path"); binmode(OUTFILE); while($bytesread=read($file_name, $buffer, 1024)) { print OUTFILE $buffer; }
|
|---|