Uplaoding Image wont work
Hi,
FOr some reason I can get the image uploading to work.
I will attach two pages.
subpages_Update.php the upload and everything works well.
pages.php does not.
I have followed the same proccess for both.
I am usung DWCS6
Hi,
FOr some reason I can get the image uploading to work.
I will attach two pages.
subpages_Update.php the upload and everything works well.
pages.php does not.
I have followed the same proccess for both.
I am usung DWCS6
you say:
can you give some more details please? What is it that does not work on the pages.php page? ( A assume you mean the pages_Update.php page as that is the other file in the zip you sent)
Sorry yes I mean pages_Update.php
1. The image is not uploaded to the specified images directories
2. I use a timestamp as the image name, with subpages_Update.php it enters for example 1357863291.jpg to the data base pages_Update.php is only inserting 1357863291
ok, to troubleshoot, change the update record redirect:
$WA_redirectURL = "pages_Update.php?pages_id=".$row_WADApages['pages_id']."&imginsert";
to:
$WA_redirectURL = "";
add the following code at line 1:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
var_dump($_FILES);
?>
go to the bindings panel and open the WA Uploaded files global status binding group and add the Debug info binding to the body of the page
post back the results after trying to upload an image.
Update a Page
Status object: WA_UploadResult1
statusCode : 1
errorMessage :
clientFileName : Penguins.jpg
fileExtension : jpg
serverFileName : 1358033234.jpg
serverSimpleFileName : 1358033234
serverDirectory : /home/starscru/public_html/iS_admin/../uploads/lge/
contentType : image/jpeg
fileWasOverwritten : 1
fileWasSkipped :
fileWasRenamed :
fileSize : 73169
isImage : 1
imageWidth : 800
imageHeight : 600
WA_UploadResult1_1:
clientFileName : Penguins.jpg
fileExtension : jpg
serverFileName : 1358033234.jpg
serverSimpleFileName : 1358033234
serverDirectory : /home/starscru/public_html/iS_admin/../uploads/lge/
contentType : image/jpeg
fileSize : 73169
imageWidth : 800
imageHeight : 600
isImage : 1
fileWasOverwritten : 1
fileWasSkipped :
fileWasRenamed :
statusCode : 1
WA_UploadResult1_2:
clientFileName : Penguins.jpg
fileExtension : jpg
serverFileName : 1358033234.jpg
serverSimpleFileName : 1358033234
serverDirectory : /home/starscru/public_html/iS_admin/../uploads/sml/
contentType : image/jpeg
fileSize : 4125
imageWidth : 125
imageHeight : 94
isImage : 1
fileWasOverwritten : 1
fileWasSkipped :
fileWasRenamed :
statusCode : 1
that result means that the image is being uploaded successfully.
the image us uploaded as 1358033234.jpg
serverFileName : 1358033234.jpg
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.