boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Upload Images

 
Post new topic   Reply to topic    boardom Forum Index -> How to ?
View previous topic :: View next topic  
Author Message
mcase



Joined: 02 Sep 2003
Posts: 2

PostPosted: Tue Sep 02, 2003 1:11 am    Post subject: Upload Images Reply with quote

I cant seem to get the image uploading to work. Or if it is, i dont know how to use it. is the link for b2upload.php supposed to be somewhere? I can only get to it when i type it in manually, and even at that point, it doesnt seem to be puting the pictures anywhere. Anyone have any words on this? thanks
Back to top
View user's profile Send private message
moose



Joined: 04 May 2003
Posts: 196
Location: Winnipeg Canada

PostPosted: Tue Sep 02, 2003 2:57 am    Post subject: Reply with quote

first, if you havent done so, you need to change the paths in b2config.php under image upload to their actual locations.

second, you need to CHMOD the directory where the images will be to 755 or 777 if that doesn't work.

hope this helps
Back to top
View user's profile Send private message Visit poster's website
Kathryn618



Joined: 03 Sep 2003
Posts: 2
Location: South Carolina

PostPosted: Wed Sep 03, 2003 3:13 am    Post subject: Reply with quote

Hi --
I did everthing that moose said to do. I have a file named images and i CHMOD that to 777.. and I got this when I tried to upload a picture for testing:

Quote:
Warning: move_uploaded_file(/home/example/public_html/images/aut.gif): failed to open stream: No such file or directory in /home/simplyka/public_html/knit/b2upload.php on line 201

Warning: move_uploaded_file(): Unable to move '/tmp/phpsOtki0' to '/home/example/public_html/images/aut.gif' in /home/simplyka/public_html/knit/b2upload.php on line 201
Couldn't Upload Your File to /home/example/public_html/images/aut.gif.


From what I can tell its unable to move to the images file I created. Not sure though.. any ideas?
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Sep 03, 2003 6:05 am    Post subject: Reply with quote

It's because you didn't fill out b2config.php correctly.

Lines 115.
Quote:
$fileupload_realpath = '/home/example/public_html/images';


Check line 118 and set it correctly if needed.
$fileupload_url = 'http://example.com/images';
Back to top
View user's profile Send private message
mcase



Joined: 02 Sep 2003
Posts: 2

PostPosted: Wed Sep 03, 2003 6:12 pm    Post subject: Reply with quote

where is the upload file option? I can only get to the b2upload.php file by typing it in. Is it supposed to do it automatically when i click on image?
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Wed Sep 03, 2003 9:22 pm    Post subject: Reply with quote

mcase wrote:
where is the upload file option? I can only get to the b2upload.php file by typing it in. Is it supposed to do it automatically when i click on image?

Open b2config.php and find approx. line 108:
$use_fileupload = 0;
Back to top
View user's profile Send private message
Kathryn618



Joined: 03 Sep 2003
Posts: 2
Location: South Carolina

PostPosted: Tue Sep 09, 2003 7:30 am    Post subject: Reply with quote

epolady wrote:
It's because you didn't fill out b2config.php correctly.

Lines 115.
Quote:
$fileupload_realpath = '/home/example/public_html/images';


Check line 118 and set it correctly if needed.
$fileupload_url = 'http://example.com/images';


Ok I tried the above and this is what i got:

Quote:

Warning: move_uploaded_file(/home/example/public_html/images/aut.gif): failed to open stream: No such file or directory in /home/simplyka/public_html/b2upload.php on line 202

Warning: move_uploaded_file(): Unable to move '/tmp/phpDjxqFW' to '/home/example/public_html/images/aut.gif' in /home/simplyka/public_html/b2upload.php on line 202
Couldn't Upload Your File to /home/example/public_html/images/aut.gif.
Back to top
View user's profile Send private message
epolady



Joined: 30 Jul 2002
Posts: 800
Location: Texas

PostPosted: Tue Sep 09, 2003 11:26 am    Post subject: Reply with quote

It seems like you didn't configure the Upload Images portion of b2config.php correctly because you've still got
Quote:
/home/example/public_html/images/aut.gif
in your error messages. Check b2config.php again and make sure all of it is correct.
Back to top
View user's profile Send private message
Totyo



Joined: 08 Nov 2003
Posts: 5

PostPosted: Sat Nov 08, 2003 3:47 pm    Post subject: Reply with quote

Hello Smile
I have the same problem, I don't know WHERE is the button to upload files/images in the template when I post or edit my posts.
I checked the config files, I check twice the repertory patch, etc...

Another problem is that my php server is running in safe mode and it seems that uploading doesn't work because of the safe mode. Then, there is another way to upload ?

The path is like that :
$fileupload_realpath = '/web/users/www/totyo/deux/images';
("totyo" is my root folder et "deux" the root of the blog)

if you have any clue !

Thank you (and for your blog !)
_________________
http://www.amapi.net
Back to top
View user's profile Send private message
Totyo



Joined: 08 Nov 2003
Posts: 5

PostPosted: Sat Nov 08, 2003 4:01 pm    Post subject: Reply with quote

oups, I found the problem of the patch.. now, still the problem of the button/link in the template...
_________________
http://www.amapi.net
Back to top
View user's profile Send private message
frankg



Joined: 21 Dec 2003
Posts: 1

PostPosted: Sun Dec 21, 2003 6:49 am    Post subject: experiencing same problem... Reply with quote

as Kathryn618... any final solution, answer, tips or suggestions?

I verified everything in config file, no luck. I get exactly the same error message (different path names, of course). I changed b2upload to track the source of the problem and it looks like a problem with temporary variable used to store the file while in route from PC to server. Beyond that, I'm not sure, maybe it's a problem with permission to write this temp var. The modfied message I get is:

Warning: move_uploaded_file(/home/public_html/b2/images/FGBD2003.jpg): failed to open stream: No such file or directory in /home/ulmaxcom/public_html/b2/b2upload.php on line 197

Warning: move_uploaded_file(): Unable to move '/var/tmp/phpi66f3V' to '/home/public_html/b2/images/FGBD2003.jpg' in /home/ulmaxcom/public_html/b2/b2upload.php on line 197
2. Couldn't Upload /var/tmp/phpi66f3V to /home/public_html/b2/images/FGBD2003.jpg.

* note - I have no idea where "/home/ulmaxcom/public_html/b2/..." comes from, or if it's right. It look suspicious to me, there is no such directory in my web. It should be /home/public_html/b2/... and I don't know where /var/tmp/... is being stored so I can't modify the permissions.

Any help is greatly appreciated, I'm stuck... Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> How to ? All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group