on the upload form I am allowing multiple files to be
uploaded along with descriptions for each file. The
descriptions are being passed to the php file that the
cgi passes to.
By doing this I had to do some messing with array
numbering but thats another story, but it has bought to
my attention that files being uploaded are being fed to
the php file with strange array numbers from the cgi.
For example:
my upload file fields would be filename[0], filename[1],
filename[2] and filename[3]
my file description fields would be filedesc[0], filedesc
[1], filedesc[2] and filedesc[3]
When I get all this back to the php file the filenames
and descriptions don't match.
The php is correct, but the array order that is returned
by the cgi is not the same as the order stated during
the upload.
For example
File Desc file Name
1.txt 4.txt
2.txt 1.txt
3.txt 3.txt
4.txt 2.txt
Any ideas how to overcome this, or can you explain how
the file[name] order is passed to the php
Kind regards
David Cochrane
dcochrane@ley-lines.com
Logged In: NO
also receiving this problem. cant find a pattern.
cgi seems to be the problem, in that it is not grabbing the
HTTP post data completely and hence not passing it back to
the PHP, CGI needs to referenc eht efile ID on a per line
basis, anyone have any idea on a quick easy way to do this
>?
Kind regards
James@inter-hosts.net