This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Page design example, upload file





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Page design example, upload file
Mibble

2004-08-04, 7:15 pm

Hello,

With the option to create a new file, using the Page Design => UI: File Upload
it creates a page allowing a user (I think) to select a file for upload to the
server, for display on a page. I am trying to figure this out, I am fairly new
at this. Could anyone give an example which works? I looked at the other
items discussed in the forum, however I think that this function should be able
to work without having to purchase an extension.



Murray *TMM*

2004-08-04, 7:15 pm

Actually, that page is broken. Good grief.

To upload a file, you need two components playing together -

1. A field to hold the path to the local file on the client, and
2. A server script to PULL the file up from the client to the server

This is the code on the page -

<td> <p><b>Step 1</b><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem
ipsum
dolor sit amet, consectetur adipiscing elit. </p> <p>
<input name="textfield1" type="text" size="30">
<br>
<input type="submit" name="Submit1" value="Browse...">
</p> <p><b>Step 2</b><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
<p>
<input type="submit" name="Submit2" value="Upload">
</p> </td>
</tr>

Note that the browse button does NOTHING! The field type is wrong, it
should be
<input name="filename" type="file"....

in which case you *would* be able to browse (try it in a preview).

I'll report it.

Anyhow, to complete the process, you would need for the form to submit to a
server script (perl, ASP, whatever) that would take the local path to the
file and then fetch that file from the client side. Dreamweaver does not
supply such server scripts, although you could find them using Google.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Mibble" <webforumsuser@macromedia.com> wrote in message
news:cerauv$94s$1@forums.macromedia.com...
> Hello,
>
> With the option to create a new file, using the Page Design => UI: File

Upload
> it creates a page allowing a user (I think) to select a file for upload to

the
> server, for display on a page. I am trying to figure this out, I am

fairly new
> at this. Could anyone give an example which works? I looked at the other
> items discussed in the forum, however I think that this function should be

able
> to work without having to purchase an extension.
>
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews