Recent Topics

1 Jul 16, 2006 13:51    

I'm currently using 0.9.2 and all my uploaded images are contained within the 'media' directory in subfolders 'year' and 'month'. I'm generally using an external editor (Post2Blog) to format posts and upload (ftp) the images. It's actually a setting within Post2Blog which uploads the images to subfolders 'year' and 'month'. I'm quite happy with this setup.

I've noticed with 1.8 that the preferred or default setting regarding the media directory is that sub-folders are created and present for individual blogs and by default all images uploaded from b2evo are stored there.

If I continue with my present method (media/year/month) will this cause me any grief with 1.8 and potentially furture versions. I assuming not.

Is it possible within b2evo to set a setting for the media directory to something other than media/blogname?

I hope this makes sense.

2 Jul 16, 2006 18:47

I've only got a small understanding of how the file manager deals with stuff, but one thing I can say is there is an option to upload to media/user instead of (or in addition to?) media/blogname. I think you should have no problems continuing with your current method of Post2Blog because that's not something b2evolution plays a role in. The only issue you might find is that the file manager knows nothing about the files you've uploaded through any other method. In other words, if it came through Post2Blog or plain old FTP file manager doesn't see it.

Hope it helps.

3 Jul 16, 2006 21:09

superjacent wrote:

Is it possible within b2evo to set a setting for the media directory to something other than media/blogname?

In the file at conf/file _admin.php you can set the value of the global string $fileupload_url, which contains the name of the directory to which uploaded images will be saved.

There's also a variable $fileupload_realpath, and I'm not sure how that interrelated with $fileupload_url. The latter is referenced by admin/b2upload.php when the code fragment is being generated for the blogger to include in her/his post.


/**
 * Enter the URL of that directory
 *
 * This is used to generate the links to the pictures
 * Example: $fileupload_url = 'http://example.com/media';
 * Alternatively you may want to use an URL relatibe to $baseurl
 *
 * @global string $fileupload_url
 */
$fileupload_url = $baseurl.'/media';

4 Jul 16, 2006 21:27

That was back in the 0.9.* days but has been deprecated beginning with 1.6. From the 1.8 version of that file:

/**
(snip)
 * @global string $fileupload_realpath
 * @deprecated 1.6: the user uploads to his own media folder (or somewhere else with write permissions)
 * This is still used by MMS and XMLRPC though.
 */
$fileupload_realpath = $basepath.'media/';	# WARNING: slashes moved!

/**
(snip)
 * @global string $fileupload_url
 * @deprecated 1.6: the user uploads to his own media folder (or somewhere else with write permissions)
 * This is still used by MMS and the MT importer though.
 */
$fileupload_url = $baseurl.'media/';				# WARNING: slashes moved!

I'm not sure how tinkering with it will address superjacent's concerns. Perhaps someone will tinker and post about what happens?

5 Jul 17, 2006 11:12

Thanks Edb and Pipower. At least, after upgrade to 1.8 (which I haven't done yet) I can continue doing what I'm doing without major problems or any problems. I'll continue to use the external editor to upload images along with posts (effectively ftp'ing outside of b2evo).

6 Jul 17, 2006 15:09

I've been tinkering a little bit with a trial blog and I've found that you can change the media directory location from within the back-office.

Blog Settings / Blog Name / Advanced

then 'Media dir location'. Is here where another location can be specified.

7 Dec 14, 2006 11:24

Hello!
I just want ALL media in the "root" media folder (like it was in 0.9.0.0.
How can I do this? Is the only way to put in the whole URL in the back office to "individual place"?
Regards
Sopur


Form is loading...