Just one problem problem, I'm trying to set a form to upload a video.
Here's the form:
& lt; Form role = "form" action = "upload.fp" method = "post" enctype = "multipart / form-data" & gt; & Lt; Input type = "hidden" name = "upload" value = "1" & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "col-xs-6" & gt; & Lt; Span class = "BTN BTN-LG BTN-Primary BTN-Block BTN-File" & gt; Browse ... & lt; Input type = "file" name = "file" & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt ;! - col-xs-6 - & gt; & Lt; Div class = "col-xs-6" & gt; & Lt; H4 class = "Feedback field text-centric" & gt; no file chosen. & Lt; / H4 & gt; & Lt; / Div & gt; & Lt ;! - col-xs-6 - & gt; & Lt; / Div & gt; & Lt ;! - line - & gt; & Lt; Div class = "row" & gt; & Lt; H4 class = "error-field text-focused" & gt; & Lt; / H4 & gt; & Lt; / Div & gt; & Lt ;! - line - & gt; & Lt; Div class = "row" & gt; & Lt; Div class = "colonel-xs-4" & gt; & Lt; / Div & gt; & Lt; Div class = "col-xs-4" & gt; & Lt; Input type = "submit" name = "submit" class = "btn btn-primary btn-LG btn-block upload -btn disabled" value = "upload" & gt; & Lt; / Div & gt; & Lt; Div class = "colonel-xs-4" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Form & gt;
And here is the related PHP on upload.php:
if (with isset ($ _ POST ['Upload'])) {// Works here file} and {resonant "no file was found"; Unfortunately, it seems that there is no file going on next page in this form. As you can see, the form has an 'encrypt' value, which is necessary when uploading the video, however, when the form is in that value, it breaks, and the page 'uploads .php 'will not get $ _POST data (i.e., it will show the message' no file was found. '<$ P> [' Upload '])
if (isset ($ _ POST ['upload'])) This is: code>
To do this:
if (isset ($ _ files) ['File'])) {
In which scenario I also have 'no file' Receives received message does. So it seems that the form has 'encrypt' property or not, it only refuses to pass files on 'upload.php'.
Anyone
EDIT: Either way, this question was dropped in seconds of posting - it can be as soon as possible to answer anyone Have taken for granted. Someone would obviously want to see these fraudulent downwots.
.ini Settings for checking your php:
file_uploads on
max_file_uploads 20 20
Post_max_size 8m8m
Upload_max_filences2m2m
max_execution_time 18000 300
< P> max_file_uploads 20 20max_input_time 300 300
memory_limit256m 1024m
No comments:
Post a Comment