File upload
Hi Jason,
Kind of a multiple problem here. I have been struggling with out IT department to change permission on the upload folders to allow for my files to be placed on the server. They kept arguing that the 777 setting is not a "Windows" setting. I'm dealing with that part with them. Needless to say after trying their fixes I have managed to mess my "insert record.php" file to where it doesn't write the names to the designated tables.
To make a long story short I added the error reading code as you asked in a previous site. Below is the error code which I received on this new page which you mentioned that the permissions are not set correctly. Like I said i am trying to get them to change this with a bit of frustration.
First they stated that this code was missing in the form and would fix the issue. enctype="multipart/form-data" and they tested it and say it worked. If i add this code in the form then nothing happens and it doesn't write to the database at all.
If i don't have this code in place then it writes to the database except for renaming the file names to the "AdPicture" text field and writes nothing to the database. Any ideas on why it would not pick up on that name? Is it because the file upload is failing? I believe i have bound default file name to the "AdPicture" hidden text file correctly but did i miss something?
Any help would be very much appreciated.
BTW, when I add the text ... enctype="multipart/form-data" to the form, I get no error message but then again it doesn't write to the database at all.
error code -
INSERT INTO `admatdetails` (`AdProdCode`,`ProductLocation`,`OrderT`,`Ttype`,`Tlanguage`,`Colour`,`AdDesription`,`coop`,`Tname`,`TDesription`,`TdescriptionFR`,`AdPicture`,`AdJPG`,`ADPDF`,`ADZIP`,`published`) VALUES ('test-1-5','','1','G','E','C','A','90','test-1-5 Name','test-1-5 E','test-1-5 F','test-1-5','','','','Y')
( ! ) Notice: Undefined variable: FILES in C:\wamp\www\toyo_dev\Admaterials\admatdetails_insert.php on line 596
Call Stack
# Time Memory Function Location
1 0.0002 369048 {main}( ) ..\admatdetails_insert.php:0
null
Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
WA_UploadResult1_2:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
WA_UploadResult1_3:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
WA_UploadResult1_4:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult3
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult3_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded
Status object: WA_UploadResult4
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult4_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded