Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
Ruy Asan #1
Re: upload html file botton?
If your host can handle PHP, I use this script. It comes with a few frills
that shows you information about the file you uploaded - you can safely
remove them.
The file upload form:
<form action="destination.php" enctype="multipart/form-data" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="51200">
File to Upload: <input type="file" name="fileupload"><br><br>
<input type="submit" value="upload!">
And here is what needs to be in destination.php :
<h1>File Upload Results</h1>
<?php
$file_dir = "C:\\upload\\"; //change this to the dir where they need to
go
foreach($_FILES as $file_name => $file_array) {
print "path: ".$file_array['tmp_name']."<br>\n";
print "name: ".$file_array['name']."<br>\n";
print "type: ".$file_array['type']."<br>\n";
print "size: ".$file_array['size']."<br>\n";
print "destination: ".$file_dir.$file_array[name]."<br>\n";
if (is_uploaded_file($file_array['tmp_name'])) {
move_uploaded_file($file_array['tmp_name'], $file_dir.$file_array[name])
or die ("Couldn't copy");
print "file was moved!<br><br>";
}
}
?>
"francisco navarro" <fnav@prodigy.net.mx> wrote in message
news:bfccu0$pj0$1@forums.macromedia.com...gives> Hi:
>
> I have a free space for publishing my pages that my internet providernever> to the costumers,
> an I also use that space for store my designs and jobs (from clients, to
> clients, providers etc.)
> I'd like to do a page with an interface for uploading files, so I willputting> have to give clients ftp access
> 1st time I did that, never knew that is not that simple, like justto> an upload botton an the browse file box...
> Does anybody can give me tip or explanation of relevant topics for
> completing my homework. the server my provider uses is a windows nt I
> think...so maybe this can help you regarding folders that I think I need> use for this matter.!....thanks in advanced..
>
>
Ruy Asan Guest
-
How to upload a file to 2 FTP sites without an upload component for company
Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload... -
#40217 [NEW]: Installation problem and file upload using html post not working
From: ratneshmaurya at gmail dot com Operating system: Windows XP PHP version: 5.2.0 PHP Bug Type: IIS related Bug... -
Upload Friendly (Multiple File Upload Applet)
Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file... -
HTML::Mason - Upload File
I can't sub to the mason list. I get the confirm email and if I reply or send a blank message with confirm xxxxxxx in the body it just bounces..... -
how to upload an image selected from html file to flash file?
Hello, I have one html file and a flash file. In html file, it is functioning like choosing a Tshirt to design, then how to load that Tshirt picture...



Reply With Quote

