Re: Insert Record with Photo Uploads
- From: "C. (http://symcbean.blogspot.com/)" <colin.mckinnon@xxxxxxxxx>
- Date: Mon, 29 Jun 2009 14:22:09 -0700 (PDT)
On 29 June, 20:33, newbie198 <singleton.m...@xxxxxxxxx> wrote:
Big Problem I would like the form to be able to write the photo to
database but inform user if its too large or if they are trying to
upload a different file type other than jpeg or gif. I think the if
and else statement is not correct. Just need extra security.Thank you
for all your help.
The time to check if the file is too large is not after its been
uploaded. And allowing users to pic their own filename is just plain
wrong.
if (mysql_query($sql, $conn/*$uploaded_size<350000*/))
You've commented out the file size check - so if the query fails it
will report that the file is too big.
C.
.
- Follow-Ups:
- Re: Insert Record with Photo Uploads
- From: Jerry Stuckle
- Re: Insert Record with Photo Uploads
- Prev by Date: Re: Compiling PHP with SOAP/Iconv/OpenSSL support on OS X 10.5
- Next by Date: Re: having a folder that users can't access unless they're logged in (contains images, PDFs etc)
- Previous by thread: having a folder that users can't access unless they're logged in (contains images, PDFs etc)
- Next by thread: Re: Insert Record with Photo Uploads
- Index(es):
Relevant Pages
|