K
K
Kirill Gorelov2015-10-02 07:37:27
PHP
Kirill Gorelov, 2015-10-02 07:37:27

File not uploading to server via dropzone script?

Hello.
I upload files to the server through the dropzone script. In other words. Just transferred the file to the browser and it should load itself.
This is the form code.

<form action="../../assets/global/plugins/dropzone/upload.php" class="dropzone" id="my-dropzone" enctype="multipart/form-data" method="POST">
</form>

This is the code for the file that does the download.
<?php
  $uploadfile = $_SERVER['DOCUMENT_ROOT']."/theme/assets/data/menadger/".$_FILES['somename']['name'];
  move_uploaded_file($_FILES['somename']['tmp_name'], $uploadfile);
print_r($_FILES);
echo $_SERVER['DOCUMENT_ROOT']."/theme/assets/data/menadger/".$_FILES['somename']['tmp_name'];
var_dump($_FILES);
?>

When I upload via a regular form with a button, everything works.
I also looked in the browser network. when I transfer the file, the script works but does not transfer to the correct folder.
prntscr.com/8msaxf screenshot.
script developers www.dropzonejs.com

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question