473,411 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Problem In Uploading Large Image Size..

vivekgs2007
Hi to all,
I am created a Search Engine for the maps, Its working properly, but the problem is that...during uploading the map details to the database...It is not uploading the images which have a size more than 2mb...Please help me this...I struck in that...

My code
Expand|Select|Wrap|Line Numbers
  1. if ($Scale == "Million")
  2.   {
  3.     {
  4.     if (file_exists("Million/" . $_FILES["photo"]["name"]))
  5.       {
  6.       $Myerrors[$j++] = $_FILES["photo"]["name"] . " already exists. \n";
  7.       }
  8.     else
  9.       {
  10.  
  11.       $photo = $_FILES['photo']['name'];
  12.       move_uploaded_file($_FILES["photo"]["tmp_name"],"Million/".$_FILES["photo"]["name"]);
  13.       //chmod("Million/".$_FILES["photo"]["name"], 0775);
  14.  
  15.       }
  16.     }
  17.   }
  18.  
Apr 15 '10 #1
6 1814
chathura86
227 100+
there is a upload file size limit in PHP, you have to change the

upload_max_filesize

from the php settings

Regards
Apr 15 '10 #2
where is that in wamp server...in which file...is that in php.ini file..or else..please help me in this...the code is correct na..
Apr 15 '10 #3
chathura86
227 100+
it is in the php.ini

or you can set it from the code and from the htaccess also.

in your case i think php.ini is the easiest

Regards
Apr 15 '10 #4
HI,
Previous in php.ini
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M

But still it is not coming...
Apr 15 '10 #5
chathura86
227 100+
did you restart the apache server after the changes?
Apr 15 '10 #6
ya i restart the apache...then it works...thank you very much for your help....
Apr 16 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tim | last post by:
I meet problem on uploading a file with a large file size. Below is my code, how can I modify in order to be able to upload a large file successfully ? Thank for your help. upload.html: <html>...
6
by: Chamomile | last post by:
can anyone point me to some straightforward information on file uploading without using an html form? That is, direcly from within a php script. if I know the local path etc. to a particular...
1
by: Jonathan | last post by:
Hi everyone, I have a problem with the file uploading in Asp.Net and I have read a lot on forums on this but never found an answer. Here is the problem: I know Asp.Net maximum Length for...
4
by: Ian N | last post by:
Hi i'm having a problem with file permissions of upload, they appear to be being set to only readable by the administrator, so anyone browsing the site gets a 403 forbidden error when they try and...
1
by: David | last post by:
Hello. I can't upload large file with HtmlInputFile control:( Is there any file size limitation in HtmlInputFile control? If yes how can I upload to server large size file? Than you.
3
by: Charlie | last post by:
Hi: I'm working on an application that uploads images into binary fields on SQL Server. Before submitting, I would like to validate size of image (ie, 75 pixels by 75 pixels) so that images are...
2
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it...
3
by: borikangel | last post by:
I'm trying to make a HTML with XSLT from XML code already made. On the page I can't see some information I want like: Item number, gender, size and price. Is suppose to be 15 row all with...
1
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: I posted the following code two days ago when I face problem that my code could not upload large data or to be prices more than 4 MB. The code are : Dim arrayImage As Byte()...
2
kamill
by: kamill | last post by:
Dear All, I am uploading a image file and after resize the image i am saving it. My script is working fine with small size images but when i am trying to upload big size image, i am getting below...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.