![]() |
Error upload file ec=18 - Printable Version +- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com) +-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html) +--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html) +--- Thread: Error upload file ec=18 (/thread-715.html) |
Error upload file ec=18 - bobgold - 07-21-2014 Hi, when i try to upload file to server I receive erro " ec=18" when I use de add.php But, for testing I create the code bellow and the result is Ok.. The file is upload correctly to destination folder. Note: The directory have full control (read/write) FORM.HTML ========= <!DOCTYPE html> <html> <head> <title>move_uploade_file</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form action="upload.php" enctype="multipart/form-data" name="uploadform" method="post" > <input type="file" name="image123" id="image123"/> <input type="submit" name="upload"/> </form> </body> </html> UPLOAD.PHP ========= <?php if (isset($_POST['upload'])) { $filename = $_FILES['image123']['name']; $tmpName = $_FILES['image123']['tmp_name']; $storepath = "C:\documentos\" . $filename; $result = move_uploaded_file($tmpName, $storepath); if (!$result) { echo "Error uploading image file"; } if (is_uploaded_file($tmpName)) { echo "File " . $tmpName . " uploaded successfully.\n"; echo "Displaying contents\n"; readfile($tmpName); } else { echo "Possible file upload attack: "; echo "filename '" . $tmpName . "'."; } } ?> RE: Error upload file ec=18 - techgamma - 07-28-2014 I am getting exact same error. I switched my hosting server over the weekend and now I am not able to upload the files. I checked the document_repository folder permission and it has full control. Please assist. (07-21-2014, 01:14 PM)bobgold Wrote: Hi, when i try to upload file to server I receive erro " ec=18" when I use de add.php |