Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML:
- <form method="post" enctype="multipart/form-data" action="php/api/member_settings_profile_avatar.php">
- <input type="file" name="settings_choose_avatar" id="settings_choose_avatar">
- <input type="submit" value="Upload" />
- </form>
- PHP (php/api/member_settings_profile_avatar.php):
- move_uploaded_file($_FILES["settings_choose_avatar"]["tmp_name"], "img/test.png");
- ERROR:
- Warning: move_uploaded_file(img/test.png): failed to open stream: No such file or directory in /customers/4/1/a/sharingmypursuit.com/httpd.www/php/api/member_settings_profile_avatar.php on line 2 Warning: move_uploaded_file(): Unable to move '/customers/4/1/a/sharingmypursuit.com/tmp/phpeN9wyk' to 'img/test.png' in /customers/4/1/a/sharingmypursuit.com/httpd.www/php/api/member_settings_profile_avatar.php on line 2
Advertisement
Add Comment
Please, Sign In to add comment