close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image upload w/file name

Thread began 4/19/2012 12:20 pm by anonymous | Last modified 4/20/2012 9:20 am by anonymous | 5983 views | 7 replies |

anonymous

Image upload w/file name

I just finishing up an insert page (with MUCH help from tech guru Pat). I added an upload file function for the photo which is working fine - but I also need to have the form add the photo file name to the database. Is there a tutorial for this?

Sign in to reply to this post

Jason ByrnesWebAssist

On the data assist support page, there is a tutorial for adding file upload using Digital File pro to data assist pages.

Digital File pro has been replaced by the File manipulations -> uploads file, but the steps in the tutorial are the same.

Sign in to reply to this post

anonymous

Insert perfect, lost page redirect

Thanks Jason. My insert page is working perfectly, but since I added the file upload, I've lost the page redirect function. Any clues?

Sign in to reply to this post

Jason ByrnesWebAssist

most likely a php error is causing the redirect to fail.

add the following code to line 1 to turn on error reporting:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

anonymous

no errors

OK Jason. It's not showing any errors. If I remove the upload file function, the redirect is fine.

Sign in to reply to this post

anonymous

Error

Sorry. I did get an error message when I submitted the form.

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/lthsBoosters_site/admin/add.php:207) in /Applications/MAMP/htdocs/lthsBoosters_site/admin/add.php on line 241

Line 207 is the upload file script:

<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Insert_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "upload", "0", "", "JPG:60", $WA_UploadResult1_Params);
}
?>

Just not sure how to fix this.

Sign in to reply to this post

Jason ByrnesWebAssist

that error happens if there is blank space between php code blocks.

see the following thread for more details:
showthread.php?t=19285

Sign in to reply to this post

anonymous

Thanks again

What an education I'm getting with this site! I'm almost done so you should have me out of your hair soon.

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