I want to allow people to upload images but I want to be able to put
limitations on it, such as allow only jpg and gif extensions and make sure
the image is no larger than 60x60. Is there any way to do this?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Mon, 1 Nov 2004 07:44:13 -0800, bb9876 [EMAIL PROTECTED] wrote:
I want to allow people to upload images but I want to be able to put
limitations on it, such as allow only jpg and gif extensions
$_FILES['userfile']['type'] contains the mime type.
and make sure
the image is no larger than
yes, using the Glib for example...
you can set a MAX FILE SIZE for the images you upload, and check it
afterwards for size and format. After that you move the temporary files
to their destination folder...
check http://www.php.net/manual/en/features.file-upload.php and
On Mon, 2004-11-01 at 10:44, bb9876 wrote:
I want to allow people to upload images but I want to be able to put
limitations on it, such as allow only jpg and gif extensions and make sure
the image is no larger than 60x60. Is there any way to do this?
Thanks guys, these three things should solve the question. :)
Brian V Bonini [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Mon, 2004-11-01 at 10:44, bb9876 wrote:
I want to allow people to upload images but I want to be able to put
limitations on it, such as allow only jpg and
Hi,
I'm trying to upload a small image via a form. This code worked with php
versions prior to 4.1.0. I assume it would still work if register_globals
was turned on.
Here's the error:
Warning: fread(): supplied argument is not a valid stream resource in
Hey guys I need to make a place for people to upload images and then I need to make
sure the file size is alright and the pixel size too... Could someone please send me
in the right direction?
-steven
http://www.php.net/manual/en/
sections
18. Handling file uploads
XXX. http://www.php.net/manual/en/features.file-upload.phpFilesystem
functions
XLI. http://www.php.net/manual/en/ref.filesystem.phpImage functions
http://www.php.net/manual/en/ref.image.php
clarionhaze wrote:
Hey guys I need to
http://php.net/filesize
http://php.net/getimagesize
http://www.php.net/manual/en/features.file-upload.php
Also mentions Related Configurations Note: See also the file_uploads,
upload_max_filesize, upload_tmp_dir, and post_max_size directives in
php.ini
Please search the manual first -- it isn't
On Sunday 12 January 2003 12:55, Rick Emery wrote:
in your HTML file:
INPUT type=hidden name=MAX_FILE_SIZE value=500
INPUT type=file name=picfile
in PHP script:
copy($HTTP_POST_FILES['picfile']['tmp_name'], ../images/newfilename.gif);
Better still check out the example in the manual.
Hi everyone,
i don't have any experience with uploading images through PHP so
i'd like to ask you?
I' starting one server where we have some articles added by users
through PHP script and i want to also every article to has its own
image showed above. I thought that it could be a could
On Monday 09 December 2002 19:43, [EMAIL PROTECTED] wrote:
Hi everyone,
i don't have any experience with uploading images through PHP so
i'd like to ask you?
I' starting one server where we have some articles added by users
through PHP script and i want to also every article to has
Hey all, need some quick help. I have some code I was trying to get to work but I keep
getting this error:
Warning: fopen(, rb) - Success in /home/digital/public_html/upload_test.php3 on
line 18
Warning: stat failed for (errno=2 - No such file or directory) in
Seems to me $form_data might be undefined or empty. Could be a problem
related to register_globals if that value is coming from an HTML form.
Try $_REQUEST['form_data'] instead.
Marco
On Sun, 2002-11-17 at 13:58, William Glenn wrote:
Hey all, need some quick help. I have some code I was trying
Sorry--I should have read ALL your code...
Try taking a look at this manual page:
http://ca.php.net/manual/en/features.file-upload.php
It explains how to handle file uploads. Your file name should appear in
$_FILES['form_data'].
On Sun, 2002-11-17 at 12:54, Marco Tabini wrote:
Seems to me
When uploading image files to my powerpc linux box (derived
from redhat 7.1) running apache + php4.0.4pl1 something
wierd happen.
Images get corrupted by (IMHO) php itself. It adds the
following 2 lines at the top of the file:
Content-Type: image/jpeg^M
^M
...(rergular image file data)
(as
Sent: Tuesday, January 30, 2001 8:30 AM
To: PHP User Group
Subject: [PHP] Uploading images only
Hello,
Is there a way to only let images get upload while doing a simple file
upload form?
Thank you,
Brandon Orther
WebIntellects Design/Developmen
17 matches
Mail list logo