Re: Image upload in cakephp

2013-06-07 Thread Paul Gardner
Try installing something like elFinder (http://elfinder.org/), makes file uploads very easy (folder management, drag and drop). The documentation isn't the best, certainly not step by step instructions. However, I have created a Croogo 1.5 plugin for elFinder, which you could adapt for CakePH

RE: Image upload in cakephp

2013-06-05 Thread Advantage+
ne 04, 2013 2:12 PM To: cake-php@googlegroups.com Subject: Image upload in cakephp Hi All, I am new to the Cakephp any one please let me know the fileupload functionality in step by step manner. Thanks and Regards, Nilesh Patil -- Like Us on FaceBook https://www.facebook.com/CakePHP Fi

Image upload in cakephp

2013-06-04 Thread Nilesh Patil
Hi All, I am new to the Cakephp any one please let me know the fileupload functionality in step by step manner. Thanks and Regards, Nilesh Patil -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you a

Re: Image Upload

2013-03-01 Thread Tony Messias
1 March 2013 13:56, Steven Scaffidi wrote: > Hi I'm trying to create an image upload form in CakePHP. How do I do this > without a plugin? Is there a simple way? I don't need any validation or > advanced functionality - just looking for the simplest method. Any > suggestions

Image Upload

2013-03-01 Thread Steven Scaffidi
Hi I'm trying to create an image upload form in CakePHP. How do I do this without a plugin? Is there a simple way? I don't need any validation or advanced functionality - just looking for the simplest method. Any suggestions? I have a table with 7 fields. 1 of them is the photo fiel

multi image upload

2012-11-16 Thread karthikeyan karthikeyan
i am struggling so many days with multi image upload i have attached view and controller file The problem is not able to display more than one images as it is display only one help will be appreciated thanks in advance -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

CakePHP 1.3 - MEIO Image Upload / Resize & Gallery Tutorial Problem Please help me...

2012-10-21 Thread Michael Hofmair
hi Guy's, I'm trying to get this little Image Upload function to work on my cakePHP site this Tutorial on cakephp.org does pretty much all I need but I always run into Trouble when I try to get The same thing running on my site and i cant figure out why... your help would be much a

Re: File/Image upload

2012-09-18 Thread Florian Krämer
oriented and also supports different engines, gd, imagick, imagick shell... On Tuesday, October 16, 2007 1:37:47 PM UTC+2, Arendp wrote: > > Hi all! > > I have been searching for a decent file or image upload script in > CakePHP. However I have difficulties implementing it. Does anyone kno

Re: File/Image upload

2012-09-18 Thread vinny M
Hey you can test this one : https://github.com/malikov/cakephp2.0-image-upload it's simple and straight forward. On Tuesday, October 16, 2007 4:37:47 AM UTC-7, Arendp wrote: > > Hi all! > > I have been searching for a decent file or image upload script in > CakePHP. However

Image upload validation using MeioUpload

2012-08-07 Thread Clint
I'm using MeioUpload to store images.. and it's working fine except the validation on the form - specifically checking that a filename has been set to upload. When the submit button is pressed, the correct error message will be displayed if the file is of wrong type, but it wont error if the fi

Re: CakePHP Image Upload and Remote Delete

2012-06-27 Thread Miles J
So the images on B are on its own local file system? The only real solution is to make some kind of API call from A using curl that posts to B telling it to delete a certain file. Or I would suggest moving everything to Amazon S3. On Monday, June 25, 2012 7:39:16 AM UTC-7, GerarD wrote: > > Hi

Re: Image upload with Cake 2.x

2012-06-26 Thread Claudio Santos
l on their profile page. >> I already found this approach http://www.wilsolutions.com.** >> br/content/image-upload-**cakephp-20<http://www.wilsolutions.com.br/content/image-upload-cakephp-20> >> but for some reason I didn't get it to work :-(( >> >> Has anybody

Re: CakePHP Image Upload and Remote Delete

2012-06-26 Thread Dr. Tarique Sani
Create an authenticated API on B which you can call from A HTH Tarique On Mon, Jun 25, 2012 at 8:09 PM, GerarD wrote: > Hi there... > > Right now, I have two system using CakePHP on two different servers. System > A, is on a local server, while System B is hosted remotly. I need to upload > an i

Re: Image upload with Cake 2.x

2012-06-26 Thread Florian Krämer
t; I already found this approach > http://www.wilsolutions.com.br/content/image-upload-cakephp-20 > but for some reason I didn't get it to work :-(( > > Has anybody an idea how I can include this functionality? > > Kind regards, > Stefi -- Our newest site for

CakePHP Image Upload and Remote Delete

2012-06-25 Thread GerarD
Hi there... Right now, I have two system using CakePHP on two different servers. System A, is on a local server, while System B is hosted remotly. I need to upload an image in System B and be able to see it on System A. I managed to do this using http://milesj.me/code/cakephp/uploader uploader

Re: Image upload with Cake 2.x

2012-06-25 Thread Edukondalu Gutha
s looking for a working version for simply uploading user images > shown as thumbnail on their profile page. > I already found this approach > http://www.wilsolutions.com.br/content/image-upload-cakephp-20 > but for some reason I didn't get it to work :-(( > > Has anybod

Image upload with Cake 2.x

2012-06-25 Thread Stefanie
Hey guys, I was looking for a working version for simply uploading user images shown as thumbnail on their profile page. I already found this approach http://www.wilsolutions.com.br/content/image-upload-cakephp-20 but for some reason I didn't get it to work :-(( Has anybody an idea how

Re: Image Upload

2012-04-02 Thread Salines
try with this http://pixelcone.com/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-ph

Re: Image Upload

2012-04-02 Thread aSh!Q's
Miles, Thank's for the respond.But what did u mean by saying i cant save files with ajax . What is it dat we see all around .. In most of the sites the photo is uploaded by ajax . And no i'm not using a js script with an iframe hack. I dont know what it is .:).. Will any change in my previous

Re: Image Upload

2012-04-01 Thread Miles J
You can't save files with AJAX. Are you using a JS script that's using the iframe hack? On Saturday, March 31, 2012 12:41:41 PM UTC-7, aSh!Q's wrote: > > I wanted to upload a picture of the user via ajax. I checked the media > plugin but found it a little bit hard seeing all those instructions.

Image Upload

2012-03-31 Thread aSh!Q's
I wanted to upload a picture of the user via ajax. I checked the media plugin but found it a little bit hard seeing all those instructions. Is there any better way ? What is the best way ? I was thinking of using the submit option of the jshelper . And i created the following page. Form->cre

Re: strange image upload editing behavior

2012-02-06 Thread Dave D
le wrote: > hmm...model names are CamelCased, right ? > so Imagelink will be better :) > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2012/2/6 Dave D > > > Hi everybody, I'm working on creating an image upload section for my > > site, and creating the ima

Re: strange image upload editing behavior

2012-02-06 Thread Tilen Majerle
hmm...model names are CamelCased, right ? so Imagelink will be better :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/2/6 Dave D > Hi everybody, I'm working on creating an image upload section for my > site, and creating the images seems to work fine. The uploaded image &g

strange image upload editing behavior

2012-02-06 Thread Dave D
Hi everybody, I'm working on creating an image upload section for my site, and creating the images seems to work fine. The uploaded image information is saved correctly, the image is moved to the correct folder and it looks like I can call the image from other parts of the site just fine

Re: Testing image upload

2011-12-13 Thread leigh
Hi Matteo, My first advice would be read this mate http://book.cakephp.org/2.0/en/development/testing.html it will help you. If you are using cake 2.0, which I'm starting to think you are.. the simplest solution for controller testing would be to use the kick ass generate method to stub out the

Re: Testing image upload

2011-12-13 Thread Matteo Landi
On Tue, Dec 13, 2011 at 3:49 AM, leigh wrote: > Hello Matteo, > > Looks like the only way is to wrap the functions, on a second look > Sebastian Bergmann's php-test-helpers is only for user created > functions. > > kind regards, > > Leigh Leigh, thanks for the hint. I made a quick search on Goog

Re: Testing image upload

2011-12-12 Thread leigh
Hello Matteo, Looks like the only way is to wrap the functions, on a second look Sebastian Bergmann's php-test-helpers is only for user created functions. kind regards, Leigh On Dec 13, 9:21 am, leigh wrote: > Hello Matteo, > > It's not supported because of PHP and if you wrap them you can > o

Re: Testing image upload

2011-12-12 Thread leigh
Hello Matteo, It's not supported because of PHP and if you wrap them you can override them. If you want to get full stubbing/mocking of functions use https://github.com/sebastianbergmann/php-test-helpers I've not used it yet. Google testing file uploads with phpUnit or simpleTest will bring up so

Re: Testing image upload

2011-12-12 Thread Miles J
That doesn't actually test if files are uploaded and image transformations worked. On Dec 12, 7:12 am, Matteo Landi wrote: > On Mon, Dec 12, 2011 at 4:46 AM, leigh wrote: > > Hi Matteo, > > > Wrap move_uploaded_file and is_uploaded_file inside the controller > > > function moveUploadedFIle($file

Re: Testing image upload

2011-12-12 Thread Matteo Landi
On Mon, Dec 12, 2011 at 4:46 AM, leigh wrote: > Hi Matteo, > > Wrap move_uploaded_file and is_uploaded_file inside the controller > > function moveUploadedFIle($filename, $destination) { >  return move_uploaded_file($filename, $destination); > } > > function moveUploadedFIle($filename, $destinatio

Re: Testing image upload

2011-12-11 Thread leigh
Hi Matteo, Wrap move_uploaded_file and is_uploaded_file inside the controller function moveUploadedFIle($filename, $destination) { return move_uploaded_file($filename, $destination); } function moveUploadedFIle($filename, $destination) { return is_uploaded_file($filename, $destination); } The

Re: Testing image upload

2011-12-11 Thread Matteo Landi
bump! On Sat, Dec 3, 2011 at 8:01 PM, Matteo Landi wrote: > Hi list, > what is the right way (if any) to test a controller which handles file > uploads? At the moment I fill $_FILES with an array containing the > fields expected by the controller (i.e. 'tmp_name', 'size', etc.) and > then invoke

Need to Get Started: Please Help! (image upload - delete record)

2011-12-06 Thread iamarto
Dears, When I decided to use CakePHP, the 2.0 version was just out and I was stuck to it in order to avoid migration in the future. So the thing is all the tutorials on Google are of Cake 1.3 and 2.0 was hell of a change even in naming conventions. I am currently stuck in 2 things: 1. Delete po

Testing image upload

2011-12-03 Thread Matteo Landi
Hi list, what is the right way (if any) to test a controller which handles file uploads? At the moment I fill $_FILES with an array containing the fields expected by the controller (i.e. 'tmp_name', 'size', etc.) and then invoke testAction() passing $_FILES as well, but the whole mechanism fails wh

Re: David Persson Media Plugin - Batch Image Upload

2011-11-10 Thread BenJsno
Whithout flash, you can use jQuery fileuploader plugin : http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakephp-media-plugin/ On 9 nov, 07:28, Shinya Koizumi wrote: > I wouldn't use flash ( I just can't ignore iOS ) , but I would use this > onehttp://valums.com/ajax-upload/ > >

Re: David Persson Media Plugin - Batch Image Upload

2011-11-08 Thread Shinya Koizumi
I wouldn't use flash ( I just can't ignore iOS ) , but I would use this one http://valums.com/ajax-upload/ On Tue, Nov 8, 2011 at 9:25 PM, Greg Skerman wrote: > to upload multiple files, there is a flash gadget which can be used called > SWFUpload > > here is a demo showing a classic multi-sel

Re: David Persson Media Plugin - Batch Image Upload

2011-11-08 Thread Greg Skerman
to upload multiple files, there is a flash gadget which can be used called SWFUpload here is a demo showing a classic multi-select file browser: http://demo.swfupload.org/v220/formsdemo/index.php Its not a complete media plugin, you'll need to either write a back end or massage an existing back

David Persson Media Plugin - Batch Image Upload

2011-11-08 Thread BigZee
I have been using the media plugin for quite some time on multiple sites. I absolutely love it and it has always worked well for any application I might need it on. However I have run into a situation and would like to use this plugin, but cannot seem to find any resources concerning this. I did fi

Re: Meio Image Upload in CakePhp 2.0 fail plz help

2011-10-28 Thread driss
thanks it works now just fine thank you -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake

Re: Meio Image Upload in CakePhp 2.0 fail plz help

2011-10-27 Thread Vitor Pacheco
try this App::uses('Folder', 'Utility'); Em Qui 27 Out 2011 04:48:36 BRT, K3 escreveu: Try changing from: App::import('Core', array('File', 'Folder')); To: App::import('Utility', array('File', 'Folder')); -- *Vitor Pacheco* Skype: vitor.pacheco.costa Msn: vitor-...@hotmail.com Cel.: 71 8626-7

Re: Meio Image Upload in CakePhp 2.0 fail plz help

2011-10-27 Thread K3
Try changing from: App::import('Core', array('File', 'Folder')); To: App::import('Utility', array('File', 'Folder')); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their C

Meio Image Upload in CakePhp 2.0 fail plz help

2011-10-26 Thread driss
I'm working on small website with CakePHP but this time I wanted to see the 2.0 features so I used the new released 2.0. Everythings runs fine except for the Meio Image Upload Behavior It want work because it doesn't find a file where is write down the Folder class this what gives me whe

Re: image upload via iphone app

2011-03-14 Thread Foroct
It looks like the problem is in this line $this->Drink- >make($file); // generate versions When I set my file upload to $this->data['media'] by stating $this- >data['media'] = $_FILES['media'] ; The media plugin then handles the upload using $file = $this->Drink- >transfer($this->data['media']);

Re: image upload via iphone app

2011-03-13 Thread David Persson
Hi Foroct, I'd need a little more information in order to help you. What does $this->data['media'] looks like *before* you hand it over to ->transfer()? var_dump($this->data['media'])? Also provide var_dump($this->params['form']. Also check var_dump($this->Recipe->Behaviors->Transfer->runtime)

Re: image upload via iphone app

2011-03-13 Thread Foroct
The XHR file upload using PHP to move my file to a set location and save it works well. Really easy as I described earlier, no work around needed. The phone app simply bypasses the view (its there but is a blank file) and the action is handled by the controller. Again the issue is trying to use the

Re: image upload via iphone app

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 2:38 PM, Foroct wrote: > I kicked this around for a few days and I still cant make it work. > > My model is "Recipe" and it is using the plugin > var $actsAs = array('Media.Transfer', 'Media.Generator', > 'Media.Coupler'); > When I upload using a form everything is perfect.

Re: image upload via iphone app

2011-03-12 Thread Foroct
I kicked this around for a few days and I still cant make it work. My model is "Recipe" and it is using the plugin var $actsAs = array('Media.Transfer', 'Media.Generator', 'Media.Coupler'); When I upload using a form everything is perfect. >From my app, I'm sending the photo (via XHR) to this con

Re: image upload via iphone app

2011-03-08 Thread David Persson
Hi Foroct, 1. Handling just the file upload: You just posted the file to your action (via XHR) and $this->data['media'] now contains the file upload array. Image is a model available in the controller which has generator and transfer behaviors attached to it. $file = $this->Image->transfer($t

Re: image upload via iphone app

2011-03-05 Thread Foroct
The only thing keeping me from using MediaPlugin in my app_photo() function is that I don't know how (that's what I'm trying to find out). I could return the image.id or the file name as an echo or a JSON response, it is being propegated through the submission stages currently. So, how would I us

Re: image upload via iphone app

2011-03-04 Thread cricket
On Fri, Mar 4, 2011 at 3:57 PM, Foroct wrote: > Sorry this is not clear. > > If you are browsing my site (not using the phone app) and you add data > and a photo via a form field then the image is being handled by the > media plugin. However when adding data and a photo via the iphone app > I am n

Re: image upload via iphone app

2011-03-04 Thread Foroct
Sorry this is not clear. If you are browsing my site (not using the phone app) and you add data and a photo via a form field then the image is being handled by the media plugin. However when adding data and a photo via the iphone app I am not currently handling the photo upload via the media plugi

Re: image upload via iphone app

2011-03-04 Thread cricket
On Fri, Mar 4, 2011 at 1:42 PM, Foroct wrote: > "post it to a URL handled by a controller implementing the uploader," > > This is what I don't know how to do.  Currently the controller is > handling the upload and just placing the file into a folder. You said earlier that "image processing is bei

Re: image upload via iphone app

2011-03-04 Thread Foroct
"post it to a URL handled by a controller implementing the uploader," This is what I don't know how to do. Currently the controller is handling the upload and just placing the file into a folder. My code. function app_photo() { // what layout to use $this-

Re: image upload via iphone app

2011-03-03 Thread cricket
then the text is sent back to my > site as a JSON file and a new record is created in my database. > > This is all working however I would like to use the Media Plugin to > crunch my image upload from the iphone app. > I cant seem to find any information on how to do this, has any

image upload via iphone app

2011-03-03 Thread Foroct
database. This is all working however I would like to use the Media Plugin to crunch my image upload from the iphone app. I cant seem to find any information on how to do this, has anyone done it before or does anyone know a way to make it happen? Basically is there a way to invoke the Media Plugin

Re: Image upload and handling

2011-02-10 Thread zero00
Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

Re: Image upload and handling

2011-02-10 Thread Ryan Snowden
a gallery app with the following requirements >>     User image upload form >>     Thumbnail generation  *it cant be on the fly it needs to be a >> image_thumb.file in the filesystem >>     Be able to incorporate jQuery ajax uploads >> >> I would apreciate any recomenda

Re: Image upload and handling

2011-02-10 Thread John Andersen
e does not have one in its core. > > Im trying to build to build a gallery app with the following requirements >     User image upload form >     Thumbnail generation  *it cant be on the fly it needs to be a > image_thumb.file in the filesystem >     Be able to incorporate jQuery

Image upload and handling

2011-02-09 Thread zero00
Hello, i just started with CakePHP and I was looking for a good Image Component since Cake does not have one in its core. Im trying to build to build a gallery app with the following requirements User image upload form Thumbnail generation *it cant be on the fly it needs to be a

Re: image upload issue

2011-01-20 Thread andy_the ultimate baker
hi, thanks, On Jan 20, 11:55 pm, cricket wrote: > On Thu, Jan 20, 2011 at 3:26 AM, andy_the ultimate baker > > wrote: > > this is my view > > what changes should i do with this? > > It looks like you're using an old syntax. I think it may have been > deprecated. Not sure, but use dot notation in

Re: image upload issue

2011-01-20 Thread cricket
On Thu, Jan 20, 2011 at 3:26 AM, andy_the ultimate baker wrote: > this is my view > what changes should i do with this? It looks like you're using an old syntax. I think it may have been deprecated. Not sure, but use dot notation instead. echo $form->label('Image.images', 'Image:' ); echo $for

Re: image upload issue

2011-01-20 Thread andy_the ultimate baker
sorry, actually i could not get u that time, but i m taking ur replies carefully, i hope u will continue helping me. i m really thankful to you. thanks On Jan 20, 3:25 pm, Amit Badkas wrote: > Hi, > > It seems that you didn't read my replies carefully. I asked you twice about > correcting field

Re: image upload issue

2011-01-20 Thread Amit Badkas
Hi, It seems that you didn't read my replies carefully. I asked you twice about correcting field names in view (e.g., 'filedata' instead of 'Image/filedata') but still you didn't do it. If you are coding anything using CakePHP without learning the basics, then please refer http://book.cakephp.org

Re: image upload issue

2011-01-20 Thread andy_the ultimate baker
this is my view what changes should i do with this? Upload An Image Form->create('Image', array('action'=>'admin_upload', 'type' => 'file'));?> Images label(

Re: image upload issue

2011-01-19 Thread Amit Badkas
Hi, Have you corrected field names in view (e.g., 'filedata' instead of 'Image/filedata')? Also provide 'type' as 'file' to Form->create(). For example, Form->create('Image', array('action'=>'admin_upload', 'type' => 'file'));?> Hope this helps. Amit Badkas PHP Applications for E-Biz: http://w

Re: image upload issue

2011-01-19 Thread andy_the ultimate baker
even by using $file = $this->data['Image']['filedata']; i m still getting an error. this time like bellow Undefined index: filedata [APP/controllers/images_controller.php, line 19] now what??? On Jan 20, 11:58 am, Amit Badkas wrote: > Hi, > > Why are you using field names in 'Modelname/fieldn

Re: image upload issue

2011-01-19 Thread Amit Badkas
Hi, Why are you using field names in 'Modelname/fieldname' pattern instead of just 'fieldname'? For example, you need to use 'filedata' instead of 'Image/filedata' as you have already given 'Image' as first parameter for Form->create(); Also the code in controller's action is $file = $this->data

Re: image upload issue

2011-01-19 Thread andy_the ultimate baker
Undefined index: images [APP/controllers/images_controller.php, line 19] and Cannot modify header information - headers already sent by (output started at /home/satish/anand/cakephp/cake/libs/debugger.php:673) [CORE/cake/libs/controller/controller.php, line 742] On Jan 20, 11:08 am, Amit Badka

Re: image upload issue

2011-01-19 Thread Amit Badkas
Hi, What is the error you are facing? Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Thu, Jan 20, 2011 at 11:17 AM, andy_the ultimate baker < anandghaywankar...@gmail.com> wrote: > hi there, > i working on image uploading, but i m facing an error, > can any one solve the

image upload issue

2011-01-19 Thread andy_the ultimate baker
hi there, i working on image uploading, but i m facing an error, can any one solve the issue, //this is my controller file image_controller.php data)) { $this->render(); } else { //$this->cleanUpFields(); //

Re: Security Risks on gif image upload?

2010-12-03 Thread spongebobroundshirt
Would be interesting if the attacker presumed you would do this, and made it so the converted image contains the malicious code. On Dec 3, 1:48 am, "Ma'moon" wrote: > You can easily remove the threat by using an image conversion, i use > `convert` to convert my images to a standard image type, t

Re: Security Risks on gif image upload?

2010-12-03 Thread euromark
yeah, i dont think it is that dangerous, either at least if you don't include it even the media view just passes the data without interpreting it - afaik allowing other extensions like file.gif.php would probably be the only possible danger and is usually handled by the uploader scripts On 3 Dez

Re: Security Risks on gif image upload?

2010-12-03 Thread Stephen
My mistake, I forgot about GD. I'd use GD, it may save a bit of time. Good point Ma'moon On 3 December 2010 09:34, Ma'moon wrote: > Am sorry, i mean to say "From Users Side" :) > And no, am not using any plugins for that, i have my own implementation for > file upload in CakePHP, basically you

Re: Security Risks on gif image upload?

2010-12-03 Thread Stephen
> And do you use a cakephp plugin for that? > You need to install ImageMagick to convert images using the command line (or shell_exec() etc) http://www.imagemagick.org/script/convert.php Not all hosts may support this. -- Kind Regards Stephen Check out the new CakePHP Questions site http:/

Re: Security Risks on gif image upload?

2010-12-03 Thread Ma'moon
Am sorry, i mean to say "From Users Side" :) And no, am not using any plugins for that, i have my own implementation for file upload in CakePHP, basically you would do something like: exec('convert input_file_path output_file_path'); in order to convert an image, you can also use imagemagick driver

Re: Security Risks on gif image upload?

2010-12-03 Thread netusco
On Dec 3, 8:48 am, "Ma'moon" wrote: > You can easily remove the threat by using an image conversion, i use > `convert` to convert my images to a standard image type, the conversion > process changes the physical content of the uploaded file and destroys all > the threat that it might contain whi

Re: Security Risks on gif image upload?

2010-12-02 Thread Ma'moon
You can easily remove the threat by using an image conversion, i use `convert` to convert my images to a standard image type, the conversion process changes the physical content of the uploaded file and destroys all the threat that it might contain while maintaining the valid images if they were va

Re: Security Risks on gif image upload?

2010-12-02 Thread cricket
On Thu, Dec 2, 2010 at 8:25 PM, euromark wrote: > Did anyone try this? > http://wafful.org/2007/08/04/php-code-in-gif-image-file/ > > I am wondering if miles uploader script or any other uploader plugin > is aware of that risk yet. > Or how dangerous this actually is for "normal" cake apps. > > An

Security Risks on gif image upload?

2010-12-02 Thread euromark
Did anyone try this? http://wafful.org/2007/08/04/php-code-in-gif-image-file/ I am wondering if miles uploader script or any other uploader plugin is aware of that risk yet. Or how dangerous this actually is for "normal" cake apps. Anyone happen to have such a "bad" image at hand? Drop me a line

Re: Image Upload, webroot path?

2010-11-06 Thread Raphi
Yes that's exactly what I did wrong. Thank you very much! On 6 Nov., 18:19, cricket wrote: > On Sat, Nov 6, 2010 at 11:45 AM, Raphi wrote: > > Hi there, > > > I got a little issue loading up an image. > > > All the validation works just fine but when it comes to moving things > > around somethi

Re: Image Upload, webroot path?

2010-11-06 Thread cricket
On Sat, Nov 6, 2010 at 11:45 AM, Raphi wrote: > Hi there, > > I got a little issue loading up an image. > > All the validation works just fine but when it comes to moving things > around something happens to fail. > I use this very simple code to move the uploaded temp file: > > $filePath = WEBROO

Image Upload, webroot path?

2010-11-06 Thread Raphi
Hi there, I got a little issue loading up an image. All the validation works just fine but when it comes to moving things around something happens to fail. I use this very simple code to move the uploaded temp file: $filePath = WEBROOT_DIR . DS . 'product_img/'.$this->data['Product'] ['img']['na

Re: image upload...ajax process only works once

2010-08-24 Thread Tomfox Wiranata
huh...it somehow works with image('link_flyer_path_temp' . "?" . rand());?> but only if there is already a picture in that specific path that gets overwrittenits so freakin weird.in case there is already a pic and i upload a new one, it actually renders the new one...wtf? maybe this whole

Re: image upload...ajax process only works once

2010-08-23 Thread Tomfox Wiranata
wow thats a lot of useful information :) i will give everything a try thank you sam.. in case i fail, i might come back here :) On 23 Aug., 19:15, Sam wrote: > Add an alert statement into renderflyerpreview() to see if it is > executing when you upload a new picture. If it is executing, you

Re: image upload...ajax process only works once

2010-08-23 Thread Sam
Add an alert statement into renderflyerpreview() to see if it is executing when you upload a new picture. If it is executing, you may be right about the caching issue. If so, add a random query string onto the edge of the source of your image in the render_flyer element, something like image('link_

Re: image upload...ajax process only works once

2010-08-23 Thread Tomfox Wiranata
yes, it shows the picture...it works fine the first timebut if i repeat the process the new pic wont be rendered... i am using jquery.thx for the tip On 23 Aug., 04:13, Sam wrote: > If you actually go the renderflyerpreview action does it show the > picture? Are you sure that your refres

Re: image upload...ajax process only works once

2010-08-22 Thread Sam
If you actually go the renderflyerpreview action does it show the picture? Are you sure that your refreshflyer() function is actually running when you reload an image? Also, on a side not, are you using jQuery? If so, there is a more elegant way to do some of this coding... For example, instead of

image upload...ajax process only works once

2010-08-22 Thread Tomfox Wiranata
hi, i am having a weird problem. on a site, a user can upload a picture. when its uploaded the picture gets loaded in a div area as a preview. now that works fine. but if i do this whole thing again, maybe cause i want a different picture, the new picture is not loaded, although the uploading proc

image upload&watermark(help me)

2010-04-08 Thread hoss7
hi i am new in cakephp and want some ideas or sample source code for create image upload and water mark for some image gallery i need best idea,thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

image upload + translatebehavior

2009-10-19 Thread remolacha
Hi folks Using translatebehavior for text fields, great Using meioupload for image upload, great The two don't seem to mix, however. In the Store controller: var $actsAs = array( 'MeioUpload' => array( 'header' => array(

Image Upload

2009-06-17 Thread Dave Maharaj :: WidePixels.com
OK ihave tried this 3 times and everytime i do I get 500 Internal Server Error I then have to delete everything from the server and re-upload everything to get the site to work again. Following the tutorial here: http://bakery.cakephp.org/articles/view/jquery-image-upload-crop Followed step by

Re: image upload - anything over than phpThumb

2008-06-19 Thread Corie
I would first try testing with no additional components and just use http://us2.php.net/manual/en/function.move-uploaded- file.php">move_uploaded_file. Once you confirm it works start debugging components. I've had success using Image Toolbox, also in the bakery. -Corie On Jun 19, 7:44 pm, koal

image upload - anything over than phpThumb

2008-06-19 Thread koala kid
Hi all, I've tired in vain all day to upload an image via a form to my site. I've tried using the phpThumb Component (http://bakery.cakephp.org/ articles/view/phpthumb-component) and also manually via $_FILES. I keep getting an error such as the one below, which is from the component: [0] => Ca

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-07 Thread stefanski
here is my file & image upload behaviour based on the code of iamkoa labs: http://bin.cakephp.org/saved/33249 On 7 Jun., 04:04, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > AD7six upload behavior is the best tool thast you will find for this. > > Totally

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread Dardo Sordi Bogado
> AD7six upload behavior is the best tool thast you will find for this. Totally agree with Martin! Thanks AD7six for sharing this gem. Regards, Dardo Sordi. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread mbavio
t; of files outside of the interface. > > > On Jun 6, 7:17 am, stefanski <[EMAIL PROTECTED]> wrote: > > > > For a more general aproach regarding different requirements, I think > > > it makes more sense to split the tasks. For uploading i use > > > thisht

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread Guillaume
rotecting people from downloading large blocks > of files outside of the interface. > > On Jun 6, 7:17 am, stefanski <[EMAIL PROTECTED]> wrote: > > > For a more general aproach regarding different requirements, I think > > it makes more sense to split the tasks. For uploading

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread aranworld
p://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ > which i modified to a behaviour because I see it more on the model- > side (happy to share code if wanted). And for Thumbnails I love > thehttp://bakery.cakephp.org/articles/view/image-resize-helperbecause it > offers gr

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread stefanski
For a more general aproach regarding different requirements, I think it makes more sense to split the tasks. For uploading i use this http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ which i modified to a behaviour because I see it more on the model- side (happy to share code if

Re: What is the best Image Upload / Thumbnail package for CakePHP?

2008-06-06 Thread leo
You could always write your own. It's pretty straightforward and if you come up with something special, you can share it in the bakery ;) I usually create them on the fly as the requirement for each site can be very different. But a fragment I use to resize a photo to fit a box is: function

  1   2   >