Re: unable to upload a directory using the web brower (HTTP).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cant you create the folder using php and then copy the contents (files)
to the newly created folder?
eg:

$uploaddir = $_SERVER['DOCUMENT_ROOT'] . '/mydir/'';
			if(!is_dir($uploaddir))
			{
				$old = umask(0);
				mkdir($uploaddir, 0777);
				umask($old);
			}
			$uploadfile = $uploaddir .
$_FILES['userfile']['name'];
			$uploadfileDB = $_FILES['userfile']['name'];
			
			if
(move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) 
				{
					echo ("<font  face=Arial,
Helvetica, sans-serif; font-size: 12px; font-weight: bold> File is
valid, and was successfully uploaded. </font>");
				}

not sure if this is what your looking for???
hope this helps
ANgelo	

>>> "Scott Fletcher" <scott@xxxxxxxxx> 11/16/2004 12:53:28 AM >>>
Um, look like I'm going to have to write a JAVA programming and have a
couple of friends to come to help me out with it.   Suck though!  So,
applets it is...

Zip it up, that gonna be tought because of lack of good cross-platform
support.  We have Robo-Help for Windows, since windows zip only work
for
windows then I http it over to AIX and have php extract it.  So, does
the
GNU zip work for that or not?  Probably not too well.  So, applet is
the way
to go.  It will also help me to avoid the need for the su or sudo
command
cause it doesn't work through Apache account too well.

Thanks,
 Scott



"Marek Kilimajer" <lists@xxxxxxxxxxxxx> wrote in message
news:41991DB6.4050601@xxxxxxxxxxxxxxxx
> Scott Fletcher wrote:
> > I found that on most web browsers, I can not upload the folder via
HTTP
> > using hte web browser upload dialog box.
>
> Most? I thought all.
>
> > So, I can't use the php's
> > function, is_uploaded_file and move_uploaded_file.  Because the
web
browser
> > see the folder as something to open with, like going down one
directory.
> > So, any advice or suggestion??
>
> Zip it up. Or signed applets or activex objects

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 

--------------------------------------------------------------------
Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux