Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Avatar Uploader
This discussion has been closed.
Comments
I upload the file via the uploader, it shows as broken. I upload the same image via ftp to the same directory and create a page that calls both images and the one that was ftp'd shows fine, but the uploader one is broken. I check permissions and the uploader one has read & write and ftp'd has none. Make uploader'd one none as well and it's still broken.
Then I switch the names of the files and try the html again. Same thing, so my uneducated figuring says that it is somehow messing up the image itself, BUT when I download the image that was uploaded using your extension, it is fine. I don't understand.... Help!
vanilla folder = ???
images folder = ???
avatars folder = 777
actual images = ???
edit: i just gave the 1.gif image permissions of 444 and it worked, i think? How can I edit the script to do this for each new uploaded image?
If you want to chmod every uploaded avatar, add this to the script:
Look for (somewhere at line 100):
// Move file if( move_uploaded_file( $tmpfile, $target )) { ..
After this line, add:
chmod( $target, 0655);
Or some other permission settings.
still getting these errors:
Error Message: Could not upload avatar image.
Affected Elements: AvatarManager.SaveAvatar();
seems like a deeper permissions issue.