Jump to content

Archived

This topic is now archived and is closed to further replies.

lex m.

cann't upload a photo

Recommended Posts

I have used a script by Wim vanden Eynde to upload and resize a photo, workes very good. I copied the page to a new domain and now it isn't working anymore. I tried another free php-upload script and it had the same problem, so it isn't the script, it has something to do on my side. the warnings i got were:
Warning: fopen(plaatjes/test.jpg): failed to open stream: Permission denied in /home/smsmarkt/domains/smsmarktplaats.nl/public_html/test.php on line 99

Warning: fwrite(): supplied argument is not a valid stream resource in /home/smsmarkt/domains/smsmarktplaats.nl/public_html/test.php on line 100
Er is een fout opgetreden bij het opladen van het bestand.
Warning: fclose(): supplied argument is not a valid stream resource in /home/smsmarkt/domains/smsmarktplaats.nl/public_html/test.php on line 109


what am I doing wrong, why is the permission denied?

Share this post


Link to post
Share on other sites
sound slike permission to the folder your writing to is not set up properly.. it's not client side as it would block the upload from even getting to your server it sounds like a chmod issue

Liam

Share this post


Link to post
Share on other sites
If it is the permissions you need to chmod the folder settings to allow write

Share this post


Link to post
Share on other sites
CHMOD should be either 755 or 777 (if 755 does not work)

IMPORTANT
Having a folder set to 777 leave it wide open, only allow user uploads in that folder

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.