close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

2 weeks off, image upload stops working

Thread began 1/04/2010 4:27 pm by CraigR | Last modified 1/05/2010 1:41 pm by Jason Byrnes | 1356 views | 7 replies |

CraigRBeta Tester

2 weeks off, image upload stops working

Being new to dfp2, it took me a while to get the insert record and image upload working properly.

after seemingly overcoming this obstacle, i have been doing some final testing, and now the image upload seems not to work any longer, (it definitely used to).
The insert record behavior still works ok, but i can't figure out whats wrong :confused:

i have attached the problematic insert and update pages.

many thanks

Sign in to reply to this post

Jason ByrnesWebAssist

To troubleshoot, lets start with the insert page.

on the insert page, change line 42:
$WA_redirectURL = "tblsuccess_results.php";

to:
$WA_redirectURL = "";


so that the page will not redirect.


then go the the bindings panel and expand the WA Digital File pro Global Status group, add the debug info binding to the page. Please post back the debug info results after trying to upload a file.

Sign in to reply to this post

CraigRBeta Tester

thanks for quick reply Jason, here's the debug...

Status object: WA_UploadResult1
statusCode : 1
errorMessage :
clientFileName : sa_insert_record.jpg
fileExtension : jpg
serverFileName : sa_insert_record.jpg
serverSimpleFileName : sa_insert_record
serverDirectory : D:\vhosts\cyberron\admin\images\
contentType : image/jpeg
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : 81669
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName : sa_insert_record.jpg
fileExtension : jpg
serverFileName : sa_insert_record.jpg
serverSimpleFileName : sa_insert_record
serverDirectory : D:\vhosts\cyberron\admin\images\
contentType : image/jpeg
fileSize : 81669
imageWidth : -1
imageHeight : -1
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
statusCode : 1

Sign in to reply to this post

Jason ByrnesWebAssist

The debug info indicates the image is being successfully uploaded. The upload seams to be working.

Sign in to reply to this post

CraigRBeta Tester

thanks again Jason

After your last message, and looking at the debug code, it was apparent that the problem lay in the uploaded image location.

I prefer using absolute rather than relative file paths and this is where the problem occured for me.

As I am working within an admin folder, then the line

'UploadFolder' => "../images/" is working OK

With an absolute file path, if i try to use 'UploadFolder' => "/images/", i get a string of error messages.

I must have dropped the leading slash before saving the file last time, which would obviously result in the file path /admin/images :)

Sign in to reply to this post

Jason ByrnesWebAssist

Digital File cannot use server relative paths for the upload location, it needs to use document relative paths.

Sign in to reply to this post

CraigRBeta Tester

i'll know better next time

thanks for pointing this out, also, thanks for familiarising me with the with the debug procedure

Sign in to reply to this post

Jason ByrnesWebAssist

No worries.

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...