IT Community - Software Programming, Web Development and Technical Support

Image Upload problem

This is a discussion on Image Upload problem within the PHP Programming forums, part of the Web Development category; I am trying to upload file using php , using input type = file tag of htl but when I try to ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-24-2007, 08:16 PM
ewriter ewriter is offline
D-Web Trainee
 
Join Date: Apr 2007
Posts: 19
ewriter is on a distinguished road
Default Image Upload problem

I am trying to upload file using php , using input type = file tag of htl but when I try to upload file bigger than 2-3 mbs its not uploading on the server. Any idea?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2007, 10:56 PM
im2good im2good is offline
D-Web Trainee
 
Join Date: Apr 2007
Posts: 20
im2good is on a distinguished road
Default Re: Image Upload problem

The script may be such that file size of more than 1 MB are not allowed to be uploaded
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-10-2007, 11:09 PM
Gopisoft Gopisoft is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 117
Gopisoft is on a distinguished road
Default Re: Image Upload problem

Hi,
Check the "upload_max_filesize" property in phpini file, default upload max file size is 2MB. If need to upload more than 2MB, change config value in phpini file itself.
OR
set the max upload file size value through php.
For example:
PHP Code:
<?
ini_set
("upload_max_filesize","32M"); 
?>
-R.Gopi
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2007, 05:09 AM
ThaNerd ThaNerd is offline
D-Web Trainee
 
Join Date: Jul 2007
Posts: 8
ThaNerd is on a distinguished road
Default Re: Image Upload problem

Gopi's answer won't work if php is in safe mode. Also, the web server (apache?) may set a limit in the size of accepted "post" body...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-13-2007, 05:18 AM
Senthilkumar Senthilkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 93
Senthilkumar is on a distinguished road
Default Re: Image Upload problem

Hi

Image uploading depends on post_max_size, upload_max_size,memory_limit. Check the phpini setting for post_max_size = 32M , upload_max_size=32M and memory_limit=3072M. If post_max_size or upload_max_size set 2M you upload maximum 2MB size images only. You need to upload more than 2MB means need change the phpini configuration as per mentioned.

Thanks

Last edited by Senthilkumar : 07-13-2007 at 08:05 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fckeditor Image Upload Path bluesky PHP Programming 1 03-24-2008 06:12 AM
Convert image to other image format using CODEC in .NET 3.0 Mramesh C# Programming 0 02-07-2008 03:33 AM
Example of Image Upload hanusoft ASP and ASP.NET Programming 2 09-20-2007 10:59 PM
How to upload an image to DB in ASP.Net? mobilegeek ASP and ASP.NET Programming 6 09-18-2007 11:18 PM
Fixing Problem for multifolder for code image css vivekanandan PHP Programming 0 08-31-2007 01:41 AM


All times are GMT -7. The time now is 01:47 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0