|
Posted by sheldonlg on 02/16/06 16:00
Ok, it seems I am not making myself clear. Let me try again.
1 - I am not getting the upload.
2 - I am not trying to move a file that is already uploaded. It never
gets there.
3 - It doesn't get there because it says that the file is not on my
SOURCE system, even though using the browse button that comes with the
type="files" puts it in the text area when selected.
4 - The $_FILES['filename']['tmp_name'] and the
$_FILES['filename']['tmp_name'] come up empty for the SOURCE system
file when I hit the "Upload" button which is leads me to the block of
code which actually does the upload (and I get into that block of code
-- I tested it).
5 - If I do a $source = $_POST['sourcePDF'] it comes up with
double backslashes instead of the single backslashes that appear in the
text are for the type="files" input control. If I then set the $_FILES
variable to that one, it fails with "the file or directory cannot be
found" for the SOURCE system .
6 - If I do some strtok processing to turn those double backslashes
into single ones, it still cannot find the SOURCE system file.
7 - If I turn those double backslashes into forward slashes it still
cannot find the SOURCE system file.
When I had done this before, on the previous site that I had coded for
uploads, the $_FILES variable was somehow filled in with the proper
value (whatever that was), and uploaded the file. I then, later, moved
that file from the temporary holding area on the server system to a
permanent area on the server system.
Right now I cannot even find the file on the source system, even though
I select if with the Browse button provided.
Navigation:
[Reply to this message]
|