I am facing below error message while I am trying to import a large file using phpmyadmin. What is the solution in this regard ?? Thanks
Try set upload_max_filesize, post_max_size , max_file_uploads and memory_limit to -1 in php.ini and then restart your Apache server. If it did not work, try to set the mentioned parameters to -1 right on top of your codes.
Check your php.ini file, you will find this code you can increase your size limit.
post_max_size = 140M
Related
help me. I have a problem after running "npm run dev" warning appears :
WARNING in css/app.css is 4.13 MB, and won't be precached. Configure maximumFileSizeToCacheInBytes to change this limit.
What does the warning mean? Can anyone explain? And how to solve it? Thank you good people^^
sw-precache checks which files the service worker will cache (precache) immediately during registration. During build sw-precache sees that app.css is part of your application and wants to and it to the list of precached file.
But your app.css is 4.13 MB big, which is to big for the default configuration.
First advise is: Check is you really need that much CSS and if it is possible to reduce file size.
If this is not possible you can adjust maximumFileSizeToCacheInBytes:
I am unsure if you use sw-precache, because it is outdated, you should switch to use workbox-build.
For workbox-build use the following config by setting maximumFileSizeToCacheInBytes:
// build-sw.js
import {generateSW} from 'workbox-build';
generateSW({
swDest: './dist/sw.js',
maximumFileSizeToCacheInBytes: <yourMaxFileSizeInBytesGoesHere>
.....
});
I get INTERNAL SERVER ERROR when trying to upload a file that is larger than ~15 MB.
It happens on many Typo3 installations.
I have set post_max_size and upload_max_filesize to 100 megabytes.
max_execution_time and max_input_time to 1000.
Typo3 6.2 and 7.6.
You have also to look at the max execution time and max input time of php.
max_execution_time = value_in_seconds
max_input_time = value_in_seconds
If this is not helping, look at your apache error log file which error is displayed.
Other possible problems:
Does the filename contain characters that are not compatible with your system?
Is the user (you) allowed to upload to the upload directory?
Are the permissions for the target folder correctly set (see Installtool -> Folder Structure)
Setup:
- Prestashop 1.6 Fresh Install
- Products CSV export from a live site (Prestashop 1.4)
Goal:
What I want to accomplish is to completely test the CSV Import on localhost first
before doing it on a new site. I have already tried it on the live site and I encounter
a bunch of errors, so I though it would be better to test is first.
Problem:
Now the problem is that the CSV Import doesnt seem to work on localost. Whenever I try to upload the CSV i get a "products_stream.csv (382.23 KB) : File is too large" error.
I have also tried copying the csv file directly to the admin/import folder to see if it would appear on the 'Choose from history /FTP' list but that also failed.
Would greatly appreciate any help! Cheers!
it depends on PHP configuration variables. Edit your php.ini file and increase these values, for localhost develop you can do it without fear.
Example PHP.ini modifications
; Maximum allowed size for uploaded files.
; Modified for prestashop develop
upload_max_filesize = 256M
I also suggest you to change these other values in order to better Prestashop develop:
memory_limit = 512M ; Maximum amount of memory a script may consume (8MB)
max_input_vars = 5000 ; Numero maximo de variables post
After changing values, don't forget to restart your LAMP or WAMP server (almost Apache) and to clear browser cookies before retrying import process.
Best regards
I've tried all of the suggestions that I've found and haven't succeeded in eliminating the error message:
The page at [ip address] says:
[filename] is too large to upload
I'm running Ubuntu 12.04.1 server and Moodle 2.3.1+. As others have suggested, I modified
/etc/apache2/httpd.conf adding
LimitRequestBody 0 so that there is no limit on the maximum size of uploads.
I also modified /etc/php5/apache2/php.ini setting:
post_max_size = 1024M
upload_max_filesize = 1024M
max_execution_time = 300
Those changes actually had an effect on Moodle and caused it to list larger upload limits in the site security policies and the course settings. Prior to revising php.ini the maximums were 2MB. And so, I set each of those limits to 1GB.
http://[ip address]/moodle/admin/settings.php?section=sitepolicies
http://[ip address]/moodle/admin/settings.php?section=coursesettings
And still I get the error message that the file I'm trying to upload is too large. It is only 30MB.
Can you help?
Did you reload your web-server instance?
What about memory_limit directive?
Did you try to search any .htaccess file, that might override your settings?
However, your question is related to the PHP change the maximum upload file size issue
Moodle docs:
How do the limits on uploaded files work?
File upload size
To see your actual php settings, you can look at:
http://[path to moodle]/admin/phpinfo.php and http://[path to moodle]/admin/environment.php
When i upload a file of size 35MB or more it gives
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
and if i upload a file of size 25MB or less then that it works fine. This issue occurred only when i deploy it on a server if i run it on my local system it works perfectly. One thing i want to tell that i have override httpruntime setting in my web.config and its have
<httpRuntime maxRequestLength="3145728" executionTimeout="1200" requestValidationMode="2.0"/>
what may be the issue?
Luckily, there is an alternate solution that can be enabled at the site level rather than server-wide.
source: http://www.webtrenches.com/post.cfm/iis7-file-upload-size-limits
After two days i found answer to my question and the issue is that IIS7 have maximum file upload limit which is 30000000 Bytes which is around 29MB