close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help With Image Upload To Server

Thread began 7/13/2011 3:44 pm by drew.shever427850 | Last modified 7/14/2011 8:25 am by drew.shever427850 | 1047 views | 2 replies |

drew.shever427850

Help With Image Upload To Server

Hello, I am currently building a website and I am using Data Assist to import a MySQL product catalog in which I have all my products listed. I used Data assist to make my update, insert, delete, results etc. pages and I am on the part configuring the update and insert pages to put the product images on my website server and database. I have followed the Adding Digital File Pro to DataAssit Insert and Update pages guide numerous times but keep coming up with the same problem. Right Now, I have got to the point where the name of the Image displays in my database and the image also show up on my server but it shows up as 0 KB. So basically it is just uploading the Image name to the server and not the image file, I realize that you want this for the database but for the server, I need the actual file placed on it. I don't think it is the image because I have tried multiple image files and they all do the same thing.
I attached a .txt file with my update.php page code in it.

Thanks and I greatly appreciate all the help!

Attached Files
updatephp.txt
Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshoot the issue,

add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>




then edit the data assist update behavior and remove the redirect, and add the code after the <body> tag:

php:
<?php if($_SERVER['REQUEST_METHOD'] == "POST") echo WA_DFP_AllUploadsDebug(); ?>



one issue i can see in the code is that you specified the upload folder as a server relative path:
/home5/paducahi/images


that should be a document relative path instead:
../images


post back the results of testing after making these changes and a copy of the update page in a zip archive instead of pasting the code to a text file .

Sign in to reply to this post

drew.shever427850

Problem fix but...

Hello Jason, thank you very much for reply, I ended up get my prblem fixed as it turns out I have to view the page from a web browser in order to get the upload to the server and it can't be from within dreamweaver but I do have another problem with product images not appearing in my results page. I made a new post here:

showthread.php?p=104714#post104714

I really appreciate all the help!

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