View previous topic :: View next topic |
Author |
Message |
mcase
Joined: 02 Sep 2003 Posts: 2
|
Posted: Tue Sep 02, 2003 1:11 am Post subject: Upload Images |
|
|
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 |
|
 |
moose
Joined: 04 May 2003 Posts: 196 Location: Winnipeg Canada
|
Posted: Tue Sep 02, 2003 2:57 am Post subject: |
|
|
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 |
|
 |
Kathryn618
Joined: 03 Sep 2003 Posts: 2 Location: South Carolina
|
Posted: Wed Sep 03, 2003 3:13 am Post subject: |
|
|
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 |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Sep 03, 2003 6:05 am Post subject: |
|
|
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 |
|
 |
mcase
Joined: 02 Sep 2003 Posts: 2
|
Posted: Wed Sep 03, 2003 6:12 pm Post subject: |
|
|
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 |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Wed Sep 03, 2003 9:22 pm Post subject: |
|
|
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 |
|
 |
Kathryn618
Joined: 03 Sep 2003 Posts: 2 Location: South Carolina
|
Posted: Tue Sep 09, 2003 7:30 am Post subject: |
|
|
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 |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Tue Sep 09, 2003 11:26 am Post subject: |
|
|
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 |
|
 |
Totyo
Joined: 08 Nov 2003 Posts: 5
|
Posted: Sat Nov 08, 2003 3:47 pm Post subject: |
|
|
Hello
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 |
|
 |
Totyo
Joined: 08 Nov 2003 Posts: 5
|
Posted: Sat Nov 08, 2003 4:01 pm Post subject: |
|
|
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 |
|
 |
frankg
Joined: 21 Dec 2003 Posts: 1
|
Posted: Sun Dec 21, 2003 6:49 am Post subject: experiencing same problem... |
|
|
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...  |
|
Back to top |
|
 |
|