Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

accessing images 11 May 2015 10:15 #12969

Hi there,

im using j cook for the backend interface of my component the frontend is custom

i need to be able to access the images that are uploaded but the problem is the images folders is not accessible as the premissions are strict - does anyonw know how i can change this ?

tnx

Please Log in or Create an account to join the conversation.

accessing images 11 May 2015 10:29 #12971

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I guess you are trying direct access.

in
classes/file/upload.php

You will find the chmod constants.
Keep in mind that the user is 'www-data' (generaly), wich correspond the the PHP user.
So if you are accessing with a indirect access (such as cook does), there isn't any problem.
If you want to access directly, then you have to dig a little bit.

I cannot answer you precisely, because even for me many times I get confused, and also because it is a part of my code I do not remember well.
I will have a look soon, when I will rewrite some missings features :
- Cook will propose 3 different ways to acces files (direct, indirect, Database index)
- JImage class (rewrite the cook proposed class)
- Fix the issue that cook block you to read files within the root of your Joomla. (security, but annoying)

I cannot help you more at the moment.
All contributions from users are welcome.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.078 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started