I appreciate your response but people have debated the usage of BLOBs
for a long time so I don't think we should here. Our development team
looked at the possibilities for this project and decided on BLOBs.
Most of the time we have used the file system. Thanks for your
suggestions.
On Mar 19, 5:3
IMHO a best of both worlds approach would be to store the images as blobs
and use caching for the images later on to speed up the request handling.
But depending on the complexities and overheads involved in devising such a
solution, it might be better to simply use the FS if it's a simple app.
Pe
I don't see any real "advantage" in any of the listed so called
advantages.
>Referential integrity (ACID Consistency)
Doesnt matter, the file is there or not in the FS.
>Ease of backup
Also just one command to pack the files with your favorit compression
programm.
>Saving of Inodes
A FS does th
Thanks for the suggestion, Faifas. Unfortunately it does not seem to
make a difference, although I was hopeful it would because it makes
sense. Even when I set the timeout to 6 (after trying your
suggested 600) it still logs the user out. The images I'm loading in
my test are small. Around 10k
Daffy, you may also want to add this to your beforeFilter():
Configure::write('Session.timeout', '600');
It will make session to last longer, hopefully, enough to load images.
Cheers,
Faifas
On Wed, Mar 18, 2009 at 18:12, Daffy wrote:
>
> Another update.
>
> I tried inserting this code into m
Another update.
I tried inserting this code into my image_upload controller.
function beforeFilter() {
Configure::write('Security.level', 'medium');
}
After inserting this code, the session still breaks, but all of the
images load correctly. So now it's half-working. Hopefully I'm onto
somet
It seems that adding Configure::write('security', 'medium'); to my
controller does not help. :-\
I'm wondering if what I want to do is not possible by Cake design.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cak
Faifas, I'll try your suggestion. Thanks.
Burzum, there are many good reasons a developer might save images in
the database. See here for more information:
http://www.phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html#1
--~--~-~--~~~---~--~~
You received thi
Uhh... why do you save the images in the database? They should be
saved in the file system, outside of the webroot directory like in APP/
media for example. The database is not really a good place for them
because they have to go trough the database connection which slows the
whole process down.
Hey,
Why not trying this: Configure::write('security', 'medium')? I believe it
would work.
Best wishes,
Faifas
On Tue, Mar 17, 2009 at 20:52, Alfredo Quiroga-Villamil
wrote:
>
> Ummm, not that I know of.
>
> Regards,
>
> Alfredo
>
> On Tue, Mar 17, 2009 at 2:38 PM, Daffy wrote:
> >
> > Thanks
Ummm, not that I know of.
Regards,
Alfredo
On Tue, Mar 17, 2009 at 2:38 PM, Daffy wrote:
>
> Thanks for your swift response. I'm still relatively new to Cake so
> this might be a stupid question, but, is it possible to tell CakePHP
> to use a "medium" security for one section of the web site,
Thanks for your swift response. I'm still relatively new to Cake so
this might be a stupid question, but, is it possible to tell CakePHP
to use a "medium" security for one section of the web site, and "high"
security for the rest of it?
--~--~-~--~~~---~--~~
You rec
>From core.php
"CakePHP session IDs are also regenerated between requests if
'Security.level' is set to 'high'."
That's expected behavior. Setting it to medium is what I've done in my
app since I make heavy use of concurrent ajax calls.
Regards,
Alfredo
On Tue, Mar 17, 2009 at 2:03 PM, Daffy
Cake version: 1.1
CAKE_SECURITY level: high
Hello everyone. I hope this question is not too complicated. I've been
struggling with an issue for a couple of days. I have an image upload
script that uploads images to a MySQL database, storing it as a BLOB,
also creating a thumbnail for the image wh
14 matches
Mail list logo