After spending many hours in trying to install the mod file upload succesfully still serious problems are there, so its time to ask this forum for a helping hand.
---installing the (single) file upload mod---
The .cgi can be called without problems, when I logged in, and go to the form to add (toevoegen) a record, it displays correctly. It is no problem to load up an image from my harddisk. When I hit the submit (toevoegen) button strange things happen:
The first added record don't have a ID-number (the counter is set to 1 at startup).
The second added record gets number 1, the third numer 2 and so on.
No images show up after succesfull adding because after adding the first record the 'index' and 'index.cache' files (which already are in the folder 'uploads' chmod set to 777) are deleted , the first image shows up as .jpg, the second image as 1.jpg the third as 2.jpg etc.
After fixing the erased files 'index' and 'index.cache' by adding them again, the images now show up when adding another record or when a record is called for modification.
When modifying (wijzigen) a record, new problems are there. The added record cannot be found or multiple images show up.
When I'am logging in with a different username and add a record, all previous uploads are deleted as well the 'index' and 'index.cache' files.
Because in my .db file the path of the uploaded image is like d:/myimages/caravan1.jpg I looked around in this forum and read about possible server-problems. Because of that
I had made a fix to the .cgi file by changing a selection of section sub validate_upload
# fix as named in threat 13 mar 01 (Graphic upload problem)
# $file_test = $in{$db_key} . ".";
$file_test = $rec{$db_key};
No succes after this fix.
Also tested changing the $db_script_path
$db_script_path = "/home/users/my/server/www/db"; #full
$db_script_path = "."; #short
short or full path, it make no difference, so set it again short (standard)
For troubleshooting I have placed the .cgf .pl .cgi as txt-files on my server.
http://www.caravans.nl/db/doc.cfg.txt
http://www.caravans.nl/db/doc.pl.txt
http://www.caravans.nl/db/doc.cgi.txt
Please help me out with this one.
Joost
---installing the (single) file upload mod---
The .cgi can be called without problems, when I logged in, and go to the form to add (toevoegen) a record, it displays correctly. It is no problem to load up an image from my harddisk. When I hit the submit (toevoegen) button strange things happen:
The first added record don't have a ID-number (the counter is set to 1 at startup).
The second added record gets number 1, the third numer 2 and so on.
No images show up after succesfull adding because after adding the first record the 'index' and 'index.cache' files (which already are in the folder 'uploads' chmod set to 777) are deleted , the first image shows up as .jpg, the second image as 1.jpg the third as 2.jpg etc.
After fixing the erased files 'index' and 'index.cache' by adding them again, the images now show up when adding another record or when a record is called for modification.
When modifying (wijzigen) a record, new problems are there. The added record cannot be found or multiple images show up.
When I'am logging in with a different username and add a record, all previous uploads are deleted as well the 'index' and 'index.cache' files.
Because in my .db file the path of the uploaded image is like d:/myimages/caravan1.jpg I looked around in this forum and read about possible server-problems. Because of that
I had made a fix to the .cgi file by changing a selection of section sub validate_upload
# fix as named in threat 13 mar 01 (Graphic upload problem)
# $file_test = $in{$db_key} . ".";
$file_test = $rec{$db_key};
No succes after this fix.
Also tested changing the $db_script_path
$db_script_path = "/home/users/my/server/www/db"; #full
$db_script_path = "."; #short
short or full path, it make no difference, so set it again short (standard)
For troubleshooting I have placed the .cgf .pl .cgi as txt-files on my server.
http://www.caravans.nl/db/doc.cfg.txt
http://www.caravans.nl/db/doc.pl.txt
http://www.caravans.nl/db/doc.cgi.txt
Please help me out with this one.
Joost