Here is the form:
<h2>Download form for files</h2>
		<form action="upload.php" method="post" enctype="multipart/form-data">
		<input type="file" name="filename"><br>
		<input type="submit" value="Download"><br>

Here is the file handler upload.php:
		__ DIR__.DIRECTORY_SEPARATOR.$_FILES["filename"]["name"]
	echo'You have successfully added the file<a href="rus.php">Back</a>';
  • And where is it to see that the audio is not transmitted? What are your image and audio file sizes? – Tony5 May 14 '19 at 17:36
  • move_uploaded_file

    what's in this function? Perhaps there is validation by file type.
    – Explosive78 May 14 '19 at 17:51
  • Explosive78, /manual/ru/function.move-upload... Yes, it seems not :) – Condemned Capybara May 14 '19 at 18:02
  • Good evening.
    Where is the error check?
    if(! Move_uloaded_file(.....)) {
       echo $_FILES['filename']['error'];
    – Fabulous60 May 14 '19 at 18:09
  • Condemned Capybara, :) Knockdown, I was sure that the custom function.I'll go and clean the potatoes. – Explosive78 May 14 '19 at 18:10

1 Answers 1

In the settings of the web server there is an upload_max_filesize parameter.See if it limits the size of the file being transferred.
  • I found there was 2 mb.I put 30 mb, but nothing happened.I rebooted the local server, waited some time, I dropped 7 mb songs, but I also put 30 mb, why more than 7 mb songs aren’ php.ini there is a postsize parameter here in it I had 8 mb when I put all the rules, it became.Thank you for sending the right path. – Morbid89 May 14 '19 at 18:13