Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
2.5 MVC component - recommended location to store public images
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
AJH  
View profile  
 More options Aug 15 2012, 1:04 am
From: AJH <aaron.hu...@gmail.com>
Date: Tue, 14 Aug 2012 22:04:40 -0700 (PDT)
Local: Wed, Aug 15 2012 1:04 am
Subject: 2.5 MVC component - recommended location to store public images

Is there a recommended convention for a 2.5 MVC component when storing
images uploaded from the administration section to make them publicly
visible when the component's views are rendered in the front end?

e.g. for component "com_foo":

   1. site/media/com_foo/...
   2. site/components/com_foo/images/...

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Stephen Docherty  
View profile  
 More options Aug 15 2012, 1:50 am
From: Adam Stephen Docherty <adam.doche...@gmail.com>
Date: Tue, 14 Aug 2012 22:50:22 -0700 (PDT)
Local: Wed, Aug 15 2012 1:50 am
Subject: Re: 2.5 MVC component - recommended location to store public images
I believe the media folder as that is what it is intended for. Is also
good for security as you are not disclosing filepaths.

On Aug 15, 2:04 am, AJH <aaron.hu...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Saul Alejandro Martinez Castelo  
View profile  
 More options Aug 15 2012, 2:14 am
From: Saul Alejandro Martinez Castelo <saul.martine...@gmail.com>
Date: Tue, 14 Aug 2012 23:14:54 -0700
Local: Wed, Aug 15 2012 2:14 am
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

This tutorial has a great example on how to manage public assets and having
them organized by extension in the media/ directory. I haven't tried
myself, but I think it would be possible to declare where to store
extension assets in the media section of the manifest:

<media destination="com_helloworld" folder="media">
        <filename>index.html</filename>
        <folder>images</folder></media>

http://docs.joomla.org/Developing_a_Model-View-Controller_Component/2...

On Tue, Aug 14, 2012 at 10:50 PM, Adam Stephen Docherty <

--
Saul Martínez

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ove  
View profile  
 More options Aug 15 2012, 6:14 am
From: Ove <tobby.eriks...@gmail.com>
Date: Wed, 15 Aug 2012 12:14:18 +0200
Local: Wed, Aug 15 2012 6:14 am
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

Hi,
as far as I know there is only one path to use for public images i.e.
images/ For a component use images/mycomponent (or similar) and sub
folders. Then you can handle uploads with com_media and use the images
within the editors in e.g. articles. Some editors have settings for it
but this would not be a general solution.

I have the "opposite" problem/question. Where to store images only
public to my_component and not in general to the editors. Could be the
media folder as it seams to be a basket for all. I've choosen to use the
component folder per default and make it configurable. Nevertheless I
have to code my own upload and image handler.

Regards
Ove

Saul Alejandro Martinez Castelo skrev 15.08.2012 08:14:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ove  
View profile  
 More options Aug 15 2012, 8:21 am
From: Ove <tobby.eriks...@gmail.com>
Date: Wed, 15 Aug 2012 14:21:58 +0200
Local: Wed, Aug 15 2012 8:21 am
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

Hi Saul,

I think your answer was only to me and not to the thread so first a quote.

"
Hi Ove,
I agree with you regarding to where to store "public" images.
This doesn't seem like an issue that needs a deeper discussion, though >.<
Frontpage slideshow for instance, they use the media/com_fpss folder to
store the source and cached images.
"
I do not know the "Frontpage slideshow" component. Does it have an image
manager with upload and other functions?
Maybe we could need a general com_media2 to manage items in a
media/my_component/media folder? But the media foler is a very sensitive
one. It stores some vital data to the Joomla system not only "media". My
case is about a possible 10.000+ stored images.

Regards,
Ove


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AJH  
View profile  
 More options Aug 15 2012, 3:51 pm
From: AJH <aaron.hu...@gmail.com>
Date: Wed, 15 Aug 2012 12:51:23 -0700 (PDT)
Local: Wed, Aug 15 2012 3:51 pm
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

Thanks for the reply,

I think I should clarify my intent.  In the administration interface of my
component, I will be allowing images to be uploaded and associated to
certain records.  My controller (or model...haven't decided yet) will
handle the file upload and create thumbnails for the images as well before
everything is saved.

it seems to me that this sort of information should be stored under
/site/components/com_foo/images/...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rouven Weßling  
View profile   Translate to Translated (View Original)
 More options Aug 16 2012, 1:25 am
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Thu, 16 Aug 2012 07:25:27 +0200
Local: Thurs, Aug 16 2012 1:25 am
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

Unfortunately we don't have a recommended place for temporary images. The component folder isn't that good a place because assets should be separated from code. (Code should eventually be unaccessible to the web)

Best regards
Rouven

On 15.08.2012, at 21:51, AJH <aaron.hu...@gmail.com> wrote:

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Janich  
View profile   Translate to Translated (View Original)
 More options Aug 16 2012, 10:51 am
From: Janich <jan...@gmail.com>
Date: Thu, 16 Aug 2012 07:51:10 -0700 (PDT)
Local: Thurs, Aug 16 2012 10:51 am
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

From the cms point of view, this is somewhat interesting topic.

Where do you store public files/images?
Where do you store private files/images?

I guess the easy answer is /media/ - at least for the first question, but
how about the second?
Should the cms assist in storing private private data?

Hmm.. Where to draw the line...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rouven Weßling  
View profile  
 More options Aug 16 2012, 11:08 am
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Thu, 16 Aug 2012 17:08:49 +0200
Local: Thurs, Aug 16 2012 11:08 am
Subject: Re: [jgen] 2.5 MVC component - recommended location to store public images

Well to me it's currently as followed:

media contains all the assets an extension brings with it at install time
images (which can be renamed by the user so be careful here) contains all the data uploaded by the user that should be accessible to a browser (so for example not images to generate captchas)

What we don't have is a place for generated and temporary files.

Best regards
Rouven

On 16.08.2012, at 16:51, Janich <jan...@gmail.com> wrote:

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ove  
View profile  
 More options Aug 18 2012, 11:10 am
From: Ove <tobby.eriks...@gmail.com>
Date: Sat, 18 Aug 2012 17:10:34 +0200
Local: Sat, Aug 18 2012 11:10 am
Subject: Re: [jgen] 2.5 MVC component - recommended location to store public images

Hi,
I agree to most of what Rouven wrote.

media should be undrstood as assets for extensions without own path like
library and  plug in. Otherwise store assets by the extension: template,
component, module.
Wtih images we have the problem that it is public to the editor.

i.e the conclusion
quote: What we don't have is a place for generated and temporary files."
added with we don't have a place for not totaly public images.
(might be that the meaning of generated images is the same)

Regards
Ove

Rouven We�ling skrev 16.08.2012 17:08:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
elin  
View profile  
 More options Aug 18 2012, 8:51 pm
From: elin <elin.war...@gmail.com>
Date: Sat, 18 Aug 2012 17:51:37 -0700 (PDT)
Local: Sat, Aug 18 2012 8:51 pm
Subject: Re: [jgen] 2.5 MVC component - recommended location to store public images

Whenever you use a media field you an specify a folder so one thing you an
do is to specify a subfolder within images ... this in the old days was the
difference between the images and images/folder options where access to
folders above story was restricted.

Elin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ove  
View profile  
 More options Aug 19 2012, 2:43 am
From: Ove <tobby.eriks...@gmail.com>
Date: Sun, 19 Aug 2012 08:43:31 +0200
Local: Sun, Aug 19 2012 2:43 am
Subject: Re: [jgen] 2.5 MVC component - recommended location to store public images

Yes Elin,
I'm aware of the possibility to specify a subfolder. This solves the
path for my component very well but it does not solve the problem that
the path by default is public to any other extension. Or did I miss
something?

I so far choose to make the path configurable. It's hard to find "the
real solution". There might also be restrictions on user group or user
level. There are some possibilities in the available editors to solve this.

Ove

elin skrev 19.08.2012 02:51:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
elin  
View profile  
 More options Aug 19 2012, 11:08 am
From: elin <elin.war...@gmail.com>
Date: Sun, 19 Aug 2012 08:08:31 -0700 (PDT)
Local: Sun, Aug 19 2012 11:08 am
Subject: Re: [jgen] Re: 2.5 MVC component - recommended location to store public images

Well one thing I have thought for a long time is that someone needs to use
all the features of the media field which include the ability to record
created_by, created date etc. That would start to give us some ability to
control ownership. Once you start thinking of some of your media as assets
in terms of the asset table you can start using ACL on it.

Elin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »