Hello,
I am new to web development. I just created a website and uploaded it on the digital ocean $5 server by installing wordpress. Now I want to upload a PDF of 200 MB, but I am unable to do it with wordpress. Please tell me how to do it.
And please tell me how I can add this PDF to print on button click like this website.
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hey there,
You’ll need to increase the PHP limits you have. To do that, you can increase a couple of values in your php.ini file. To update the
php.ini
settings to allow you to upload a PDF that’s 200MB, you can follow these steps:php.ini
file.upload_max_filesize
andpost_max_size
directive to a value that is greater than the size of the PDF file you want to upload. For example, to allow a 200MB file to be uploaded, you could set this directive to:php.ini
file.Localte PHP.ini file
The location of the
php.ini
file can vary depending on the operating system and the way PHP is installed. Here are some common locations where you can find thephp.ini
file:Ubuntu or Debian:
The
php.ini
file is typically located in/etc/php/{version}/apache2/
directory for Apache or/etc/php/{version}/cli/
for the command-line version of PHP.CentOS or Fedora:
The
php.ini
file is usually located in/etc/
directory.macOS:
The
php.ini
file is located in/etc/
directory.Windows:
The
php.ini
file is usually located in theC:\Windows\
directory or in the directory where PHP is installed.If you are unsure where your
php.ini
file is located, you can use thephpinfo()
function to display the location of thephp.ini
file. To do this, create a PHP file with the following code:Save the file in your web server’s document root directory (e.g.,
/var/www/html/
) and access it in a web browser. The resulting page will display detailed information about your PHP installation, including the location of thephp.ini
file.