close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Uplaoding Image wont work

Thread began 1/09/2013 5:42 pm by simmo515303621 | Last modified 1/14/2013 9:38 am by Jason Byrnes | 790 views | 5 replies |

simmo515303621

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

Attached Files
iS_admin.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you say:

  subpages_Update.php the upload and everything works well.
pages.php does not.  



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)

Sign in to reply to this post

simmo515303621

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

Sign in to reply to this post

Jason ByrnesWebAssist

ok, to troubleshoot, change the update record redirect:

php:
$WA_redirectURL = "pages_Update.php?pages_id=".$row_WADApages['pages_id']."&imginsert";



to:

php:
$WA_redirectURL = "";



add the following code at line 1:

php:
<?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.

Sign in to reply to this post

simmo515303621

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

Sign in to reply to this post

Jason ByrnesWebAssist

that result means that the image is being uploaded successfully.

the image us uploaded as 1358033234.jpg
serverFileName : 1358033234.jpg

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...