close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

upload or email

Thread began 11/16/2012 3:50 am by JamieEff | Last modified 11/19/2012 1:46 pm by Jason Byrnes | 2531 views | 15 replies |

JamieEff

upload or email

Hi Jason

Just wondering if I could pick your brain a sec please? Basically, I have a client that wants to set up a small website which will be used for a competition.

What they want to do is get people to send them photos but am not too sure what the best way of which way to go about this (ie upload vs send) or how to do it and which tools to use from the WA toolbox..

The photos dont need to be put into a database (they are just going to be taken and put into a gallery, but we do, if possible, need to limit the file size.

Many thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

if you don't store them in a database then sending the photos in an email would be the best way to go rather then uploading them, it will be easier to track which photos are which that way.

Use UniversalEmail to send the email with the image as an attachment, IN UE, on the Attachments tab, select the submitted file option and select the file field from your form.


to limit the file size, you wil ned to use Server Validation.

For the Server Variable, click the lightning bolt icon and select the File Field File Size binding. use Numeric validation and set Max field to the maximum file size in bytes

Sign in to reply to this post

JamieEff

hey Jason

Thanks for that... having not used UE before, I can seem to find it within my DW framework...

Where should I be looking?

Thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

WebAssist -> Create Email Messsage

Sign in to reply to this post

JamieEff

thanks

is there a tutorial anywhere for setting this up as I cant seem to get my head around it - both in terms of how to set up the browse to fil;e bit and the actual adding it to the email being sent...

Sign in to reply to this post

Jason ByrnesWebAssist

no, there is not a tutorial.

to add the browse for file option, simply add a file field to your form using Insert -> Forms -> File Filed.

to add the attachment to the email, on the Attachments tab, select the submitted file option and select the file field from your form.

Sign in to reply to this post

JamieEff

the form is submitting but not with the actual attachment...

Sign in to reply to this post

Jason ByrnesWebAssist

do you mean to say that you are receiving the email, but there is no attachment?


send a copy of the page please,

Sign in to reply to this post

JamieEff

Originally Said By: Jason Byrnes
  do you mean to say that you are receiving the email, but there is no attachment?  



exactly that Jason

Thanks... have attached the files

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

Jason ByrnesWebAssist

the form encodeing type must be set to multipart/form-data in order for a file to be attached.

change:
<form id="ContactForm" name="ContactForm" method="post" action="upload.php">


to:
<form action="upload.php" method="post" enctype="multipart/form-data" name="ContactForm" id="ContactForm">


NOTE: you have 2 instances of the UE behavior on this page, make sure that the first one is configured to attach the file.

Sign in to reply to this post
loading

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