RE: Uploading a file
| From: | Mikusch, Rita | Date: | Fri, 25 Jan 2002 16:32:53 +0000 |
| Subject: | RE: Uploading a file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82130@lists.php.net to get a copy of this message | ||
Sorry if this is obvious but . . . have you checked whether your server is
running in "safe mode"? I had the same problem and finally realized that it
would NEVER work cause the webserver was running in safe mode. (Disclaimer
here -- I'm no sysadmin and don't know if Linux even has a safemode!)
I'm not sure how to get around this. There are certain specific people I'd
like to be able to upload PDFs to the webserver. But I don't want them to
have full FTP privileges. I guess one solution would be to find/write an FTP
program that you can use to give people limited upload privileges -- for
example they can only upload into one specific directory and they can only
upload pdfs. I haven't found any such program, so I guess I could write one
-- if I knew how to write an ftp program :) PHP has an ftp module I believe,
though I'm sure my ISP passed on installing that one.
Any ideas, no matter how outlandish, are much appreciated.
So many cool things to learn, so little time. Rita
-----Original Message-----
From: Todd Cary [mailto:todd@aristesoftware.com]
Sent: Thursday, January 24, 2002 2:12 PM
To: php-general@lists.php.net
Subject: Uploading a file
For some reason, I cannot get the following code to work - the file is
not sent to the server. Is there something obviously wrong? I am using
Apache on Linux (RH 7.2).
Todd
<form method="post" name="upload" action="uploadfile.php"
enctype="multipart/form-data">
<table border="0" cellpadding="0" cellspacing="0"
width="652">
<tr>
<td width="40"></td>
<td width="197">Submit this file:</td>
<td width="409">
<input type="file" name="userfile">
</td>
</tr>
</table>
<div align="center">
<font size="3"><input type="submit"></font>
</div>
</form>
--
Todd Cary
Ariste Software
todd@aristesoftware.com