uploading large file custom plugin wordpress

I am making custom plug in in which I am uploading csv file and updating the database . Problem is that the csv file is nearly 350MB and when I try to upload it on local-host it give me this error

[error] [client 127.0.0.1] PHP Warning:  POST Content-Length of 322904214 bytes exceeds the limit of 104857600 bytes

I am using simple form to upload file , is there any good way to do this so user can upload large amount of file

Related posts

Leave a Reply

1 comment

  1. You probably need to increase some limits in your php.ini server configuration file. Try this:

    upload_max_filesize = 512M
    post_max_size = 512M
    

    Updating these two values would set your max upload size at 512mb. The default is usually a lot lower. Contact your hosting / server provider about changing php.ini – if you cannot change it you are probably out of luck.

    On localhost the location of php.ini depends on what localhost stack you are using, but in WAMP you can access it by clicking the icon to open the WAMP menu, going to PHP and there is an option for php.ini.