Video uploading issue

reddensoft

Banned-Spam
Joined
Oct 7, 2022
Messages
84
Reaction score
9
Hi, I want to upload a video in Php whose size more than 2GB. However I am unable to write the code as it is showing issues. Can anyone suggest me. The video is in the form of embedded code of YouTube.
 
Update php.ini with following:

Code:
; Maximum allowed size for uploaded files.
upload_max_filesize = 5G

; Maximum size of POST data that PHP will accept.
post_max_size = 5G

; Maximum execution time of each script, in seconds.
max_execution_time = 3600

; Maximum input time of each script, in seconds.
max_input_time = 3600

; Memory limit to accommodate the large file upload.
memory_limit = 5G
 
YouTube's embedded code *is* the video; you're not uploading anything, just displaying it. Maybe clarify what you're actually trying to do?
 
Forget uploading the whole video; can't you just store the YouTube video ID? Seems way easier.
 
Back
Top