WAMP Uploading large File

后端 未结 5 1047
Happy的楠姐
Happy的楠姐 2020-12-05 16:43

I have 2.24MB file size to upload to database, it displays

No data was received to import. Either no file name was submitted, or the file size exceeded the maximum s

5条回答
  •  余生分开走
    2020-12-05 17:10

    There's another way to do it and you do not have to touch default settings at all.

    You can use the option of httpd (apache server that is run underneath wamp) called aliases for individual needs and setup your directory structure as you like. For example here is how i have set up my wordpress with alias.

    Configuration files are in:

    .../wamp64/alias/
    

    There you will probably find some files already, eg.adminer.conf or phpmyadmin.conf. So, simply create a new file and call it with .conf extension eg wordpress.conf and inside you can make your configurations, eg. for windows:

    Alias /wordpress "c:/wamp64/www/wordpress/"
    
    
        Options Indexes FollowSymLinks
        AllowOverride all
      
        Require local
      
      
        Order Deny,Allow
          Deny from all
          Allow from localhost ::1 127.0.0.1
        
    
        # Maximum allowed size for uploaded files PHP.
        # http://php.net/upload-max-filesize
        php_value upload_max_filesize 20M
        php_admin_value upload_max_filesize 128M
    
    `
    

    The line with php_value upload_max_filesize 20M is where you can set size for php and php_admin_value upload_max_filesize 128M line is where you setup your preference for phpMyAdmin.

    Thought I should just point out to this as an option instead of editing php.ini file directly as that will make a system wide change and aliasing option can be selective.

提交回复
热议问题