0ALf0 Posted March 4, 2007 Share Posted March 4, 2007 I have a LAMP VPS that is running a file upload script. Even when uploading very small files, the script failes and returnes the following warning: "Warning: fopen(/tmp/phpvRfHjG) [function.fopen]: failed to open stream: Value too large for defined data type in" I get exactly the same message when using move_uploaded_file()... I´ve spent hours searching for others with similiar problems on the net without success. As far as I understand, the warning usually occurs when people are dealing with very large files, which is not the case for me. Any ideas of what might be the reason? Any settings in php.ini or apache that might help? The server is running PHP5 and Apache2. The settings are mostly the defaults, with a few exceptions due to sercurity. Thanks for help! Link to comment https://forums.phpfreaks.com/topic/41133-very-odd-file-upload-problem/ Share on other sites More sharing options...
play_ Posted March 4, 2007 Share Posted March 4, 2007 Check your config file. I think there's an upload setting that allows the maximum file size to be uploaded. Link to comment https://forums.phpfreaks.com/topic/41133-very-odd-file-upload-problem/#findComment-199227 Share on other sites More sharing options...
0ALf0 Posted March 4, 2007 Author Share Posted March 4, 2007 The max_filesize option is set to 8M and the warning is displayed for ALL files I´ve tried regardless the size of it. So, the problem must be elsewhere.. Link to comment https://forums.phpfreaks.com/topic/41133-very-odd-file-upload-problem/#findComment-199253 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.