PDA

View Full Version : PHP Upload Errors


Gellpak
Wed 14th Feb '01, 9:15pm
I am currently writing an upload script for an intrasite of my own development, and i have come up with an inexplicable error-- when i submit the form (containing a file upload field) the thing sends only the filepath from the system it originated on, and it duplicates evey "/", so that all my script recieves is a filename such as this

c://files//file.txt

rather than

c:/files/file.txt

... the field is called fil1, so therefore the filename only should be
$fil1_name
the size would be
$fil1_size
and the type
$fil1_type
while the tem file location would be simply
$fil1

correct? i dont have any clue how to fix this, from what i can tell the coding is sound. can anyone help out?the script in question is attached.