Re: How upload files to protected directories?
| From: | Keith Vance | Date: | Thu, 15 Mar 2001 16:12:19 +0000 |
| Subject: | Re: How upload files to protected directories? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44051@lists.php.net to get a copy of this message | ||
Can you set, in your script, where the files are uploaded so that the
files can be uploaded into a directory that allows you to do a copy.
Keith
On Wed, 14 Mar 2001, Mig wrote:
> Keith Vance wrote:
>
> > You should be able to do something using PHP, try looking here,
> > http://www.php.net/manual/cs/features.file-upload.php
> > I think there is just a communication problem between you and your hosting
> > company. They don't allow ftp uploads, but as long as you are doing it
> > through http, it should work fine. There is also some good stuff about
> > this on http://www.phpbuilder.com. I do it all the time
> > and my hosting
> > company couldn't care less, but your's may be different and you may have
> > to switch or should switch to someone else if you can't get the http
> > upload to work.
> >
> > Keith
>
> Hello Keith, thanks very much. Sorry because I forgot explain following: picture files really
> are uploaded to host server, because I check temp file and they are ok (I check $userfile_temp
> variable). My problem is: I can't move, copy, rename or anything else other than 'open and
> read' this file. Whenever I try exec copy commands I receive 'copy command denied for
> /web/.....'.
> You know temp files will be deleted when script terminates, so I die with my pictures in hand.
>
> Thanks again
>
> Mig
>
>