Hi,

I am trying to let my users upload videos on my website by using a Form, but when I try to upload a video it times out.

How can I write a php script to make this work? -OR- Do I need to change the PHP.ini file to make the php script handle 20mb uploads?

All answers/replies are welcomed.

Thanks so much in advance!

-Programmer12

Hi Programmer12,

you have to change the php.ini. Have a look for lines with the options

post_max_size

,

upload_max_filesize

and maybe

max_execution_time

I'm not sure about the last one. Try the uploads with the default value and increase it, if you have problems.

Feel free to ask further questions, Simon

You have to change it in php.ini file

upload_max_filesize = 20MB

Check this to understand how to configure php.ini file to upload file of size 20mb or so...

Thanks. I will try it and get back with you all with the results.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.