|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-02 13:40 UTC] sander@php.net
[2002-04-04 16:01 UTC] cindy_walker at dot dot ca dot gov
[2002-04-13 19:14 UTC] shiflett@php.net
[2002-06-18 04:19 UTC] hholzgra@php.net
[2002-06-18 12:10 UTC] cindy_walker at dot dot ca dot gov
[2002-06-18 12:32 UTC] sander@php.net
[2002-06-18 12:57 UTC] cindy_walker at dot dot ca dot gov
[2002-06-18 16:13 UTC] sniper@php.net
[2002-07-29 01:00 UTC] php-bugs at lists dot php dot net
[2003-03-03 18:29 UTC] comelon33 at hotmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 11:00:01 2025 UTC |
I have file uploads working with images, Word and Excel files and text files, but when I try to upload zip or visio files I see this message: "Unable to open 'none' for reading. No such file or directory..." It captures the name and mime type (application/x-zip-compressed and application/octet-stream, resp.) but $attachment is set to 'none' and $attachment_size is 0. Here's the relevant part of the form: <form method="post" name="form" action="uploadtest.php" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="100000"> <input type="file" name="attachment"> Here's the relevant part of the script that handles it: $strLength1 = strlen($attachment_name); if ($strLength1 > 0) { $suffix1 = substr($attachment_name,($strLength1 - 4),4); $upfile1 = "/www/pub/changecontrol/files/".$latestRecord."-1".$suffix1; //$latestRecord is defined earlier if (!copy($attachment,$upfile1)) { echo "Problem: Could not move file into directory."; exit; } } Any workaround for this? We're using Apache 1.3.18.