Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

move_uploaded_file error

Status
Not open for further replies.

kurkulis

IS-IT--Management
Jan 1, 2007
11
LV
while uploading image appears this error:

Warning: move_uploaded_file(img/6.jpg): failed to open stream: No such file or directory in / on line 91

Warning: move_uploaded_file(): Unable to move '/ to 'img/6.jpg' in / on line 91


permissions to all those locations are 777
(server on RedHat)


in php.ini are these values:
post_max_size = 10M
upload_max_filesize = 10M

and image is less than 10M

how to solve this?
 
i found solution myself,
if server runs on linux then obligatory must add in upload form line with max size
" <input type="hidden" name="MAX_FILE_SIZE" value="100000">"
but if server runs on windows then this is not necesary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top