I'm using David Persson's excellent Media plugin, and found an odd bug. I
use it in a Gallery plugin, and when the gallery contains a lot of images
(maybe 100? haven't been able to determine exactly), deletion doesn't work.
I'll use the usual mechanism of deleting, and the image doesn't get
://deepliquid.com/content/Jcrop.html and the
Media
Plugin from David Persson https://github.com/bmcclure/CakePHP-Media-Plugin
.
*Setup:*
All mediafiles are stored by the Attachment Model which is based of the one
shipped with the Mediaplugin.
Other Models can use the Attachment Model to store mediafiles
exist neither should the record. I
tend to create a separate table for attachments for this very reason. A
user should be allowed to exist without an image.
On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote:
I'm using David Persson's media plugin. I have a users table
is in
the wrong place.
I am trying to figure out how/if I can use the media plugin to move the
file from the original path, to a new path. I know how to do that using the
beforeSave (detect change) and afterSave (move if needed) but I'd like to
use the media plugin to make the move as it automatically
I'm using Media Plugin with 2.1 is the monolithic setup (i.e. using the
Polymorphic behavior).
For this I have a Project that hasMany Attachments.
How do I delete an attachment without deleting the project? I get errors
when I try to use $this-Project-Attachment-find().
--
Our newest site
Just thought I'd post my slightly cleaner solution to this which makes
use of a modified version of the attachments element in the media
plugin. This allows you to use the attachment multiple times in a form
for when you have different groups of attachments i.e. photos, files,
videos etc. I'm
Well this whole project has made me realise how much I suck at Ajax/JS
etc. I ended up getting this working using cakephp's HTML5 multi file
support and converting that data array to one that the media plugin
would understand (as per Jeremy's first suggestion!).
In case anybody else is looking
I don't have any templates, but I use file-uploader[1] on a currently
active project. It doesn't require jQuery but works pretty nicely.
It sends each upload as a separate request, so write the controller code as
if you're receiving one file (like the media plugin examples) and you
should
Hi Jeremy,
Not having much luck with the saving manually option, do you having
any working examples of drag and drop (jquery) I can look at?
Thanks,
-Brett
On Apr 17, 7:44 am, jeremyharris funeralm...@gmail.com wrote:
Or, instead of using the multiple option, you can try processing them each
the cakephp media plugin in my project using the monolithic
style attachments table, i.e. all the attachments go in the one table
with foreign_key, model, group etc. saved with the file details. So my
model looks like:
class ProjectProfile extends AppModel {
var $name = 'ProjectProfile';
var
$path .= !empty($extension) ? '.' . strtolower($extension) : null;
return $path;
}
This is defined on the model that $actsAs Media.Transfer.
On Thursday, April 19, 2012 8:49:00 AM UTC-7, James Dcunha wrote:
Hello all,
With cake media plugin can we configure the plugin to create dynamic
Hello all,
With cake media plugin can we configure the plugin to create dynamic
subdirectories dynamically inside the transfer folder without changing the
plugin core code.
Example with default settings I can transfer document files to
WWW_ROOT/media/transfer/doc/test.doc
Could we configure
that $actsAs Media.Transfer.
On Thursday, April 19, 2012 8:49:00 AM UTC-7, James Dcunha wrote:
Hello all,
With cake media plugin can we configure the plugin to create dynamic
subdirectories dynamically inside the transfer folder without changing the
plugin core code.
Example with default
Try MeioUpload.
https://github.com/jrbasso/MeioUpload
2012/4/15 double07 br...@bluenectar.com.au
Hi All,
I'm using the cakephp media plugin in my project using the monolithic
style attachments table, i.e. all the attachments go in the one table
with foreign_key, model, group etc. saved
multiple upload).
On Sunday, April 15, 2012 5:42:25 PM UTC-7, double07 wrote:
Hi All,
I'm using the cakephp media plugin in my project using the monolithic
style attachments table, i.e. all the attachments go in the one table
with foreign_key, model, group etc. saved with the file details. So
Hi All,
I'm using the cakephp media plugin in my project using the monolithic
style attachments table, i.e. all the attachments go in the one table
with foreign_key, model, group etc. saved with the file details. So my
model looks like:
class ProjectProfile extends AppModel {
var $name
Hello all,
I am using CakePHP 1.3 and Cake Media plugin
(https://github.com/davidpersson/media).
With the default setting I am able to upload images and pdf. I tried to
upload a .docx file and I am not able to upload it.
Following is the validate rule in my Document model
?php
class
Hi,
I'm trying to use David Person's Media Plugin with an hasMany association
and it doesn't work...
My environment:
- Win XP
- CakePHP 1.3.14
- PHP 5.3.8
- Media Plugin 1.3
Media plugin is in my App/plugins directory.
In my config/boostrap.php, I have: require
APP.'plugins/media/config
Hi there,
I am trying to use the Media plugin for Cake 2.0 (https://github.com/
bmcclure/CakePHP-Media-Plugin) and all appears to be working except
that I am getting the warning below on 2 of my view pages. I have
searched high and low for answers, but am not finding anything.
Warning (2
On Thursday, 1 March 2012 11:07:34 UTC+1, Nif wrote:
Hi there,
I am trying to use the Media plugin for Cake 2.0 (https://github.com/
bmcclure/CakePHP-Media-Pluginhttps://github.com/bmcclure/CakePHP-Media-Plugin)
and all appears to be working except
that I am getting the warning
hi,
Im a beginner and asked to do a form for batch upload of images and so
I'm trying hard to understand the concept,
i found few online and all were pretty old, means they were cakephp
1.3.
I would be very thankful, if any one could help me with a detailed
tutorial on batch upload of images.
exist neither should the record. I tend
to create a separate table for attachments for this very reason. A user
should be allowed to exist without an image.
On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote:
I'm using David Persson's media plugin. I have a users table
Burns wrote:
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model User-create always fails on User-save
when the user does
.
On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote:
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model
boston.dus...@gmail.com wrote:
I'm just getting started with CakePHP and also David Persson's Media
plugin (http://github.com/davidpersson/media). I've got my app
working
but I'm having a difficult time getting the Media plugin working. I
figured I'd start this thread so I could A.) get
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model User-create always fails on User-save
when the user does not have
:
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model User-create always fails on User-save
when the user does not have
, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote:
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model User-create
.
On Tuesday, February 28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote:
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model User
28, 2012 5:42:11 AM UTC-8, Jeremy Burns wrote:
I'm using David Persson's media plugin. I have a users table that
contains the fields necessary to link to an image file, but a user
does not have to have an image. When I include the Media.Coupler
behaviour in the User model User-create always
Have you tried this plugin:
https://github.com/josegonzalez/upload/tree/2.0
--
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
Hi
I would open a discussion between all developers that use cakephp.
I think that a frequent problem in development is the File Upload.
For Cake 1.3 exists the fantastic Media Plugin of David Persson that
for me is it the best plugin about File Upload.
But Media Plugin of David Persson hasn't
It may be an idea to make changes to the media plugin for 2.x and
share it if lisences arent an issue. I'm still on 1.3 for now but it
would be nice to contribute.
Sent from my iPhone
On 22 Feb 2012, at 17:01, byqsri marco.rizze...@gmail.com wrote:
Hi
I would open a discussion between all
See: https://github.com/davidpersson/media/issues/66
--
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,
I am trying to get the plugin to work on IIS 7. I have set the correct
permissions to the media folder under webroot. However I am getting a
404 when i try to access uploaded images. Server logs show a 200
status. I am a newbie to cake and media plugin. Could somebody tell me
what the problem
If you used the media shell to protect your files, it *could* be why. Check
for an .htaccess file under /webroot/media.
If not, we'll need more information. Can you get to them locally? Did you
check to make sure they are uploaded correctly? Were the permissions you
set recursive?
--
Our
Hi Jeremy,
Thank you very much for you reply.
I have not protected the media folders (no htaccess in media folder).
Also Godaddy is the hosting provider and I am tied to IIS. I had
already removed 'recursive permissions' from parent for the media,
transfer and filter folder (and subfolders) and
If the 404 isn't being sent by the server, it's probably being sent by
Cake. Turn on debug to see what errors cake generates, or look at the debug
log (/tmp/logs/debug.log). Any clues in there?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the
Hi Jeremy,
Nothing in the app debug logs. However I looked at the IIS server logs. All
requests to the uploaded images are being routed through index.php. I have
used the rewrite rules from here -
http://book.cakephp.org/1.3/view/1636/URL-Rewrites-on-IIS7-Windows-hosts
I am not sure if I
Hi
I use the fantastic Media Plugin of David Persson.
For now I have all my uploaded files in the same server
I would ask if someone uses this plugin with some CDN and how use it
with CDN?
Many Thanks
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
Add a behavior that has an afterSave and afterDelete that take care of it
(or attach those actions to your model).
Here's a helper function to get a list of files based on your filters set
(hardcoded for images, but you can adapt it to use whatever types you
want). Once you have that list of
Hi
I'm using Media Plugin of David Persson (https://github.com/
davidpersson/media) and it is very very useful.
I would ask a question that I can't resolve.
My question is that when I do a filtering (fitInside) of an upload
image
Configure::write('Media.filter.image', array
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 sh.koiz...@gmail.com wrote:
I wouldn't use flash ( I just can't ignore iOS ) , but I would use this
onehttp
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
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
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 end into service.
On Wed, Nov 9, 2011 at 5:10 AM, BigZee ad...@2ndrevolt.com wrote:
I have been using
Persson's Media Plugin integrated however it is not
ideal to handle big uploads. Is there a way to integrate Pulpload (or
something similar) to work with the Media plugin and Cakephp? Has
anyone of you done this already?
Regards
--
Our newest site for the community: CakePHP Video
Hey
I need the ability to upload large (up to 100MB) files. Up to now I
have the David Persson's Media Plugin integrated however it is not
ideal to handle big uploads. Is there a way to integrate Pulpload (or
something similar) to work with the Media plugin and Cakephp? Has
anyone of you done
the ability to upload large (up to 100MB) files. Up to now I
have the David Persson's Media Plugin integrated however it is not
ideal to handle big uploads. Is there a way to integrate Pulpload (or
something similar) to work with the Media plugin and Cakephp? Has
anyone of you done this already
I have been using the Media Plugin by David Persson and I think it's
great and has saved me a lot of time. I started out with an Invoice
model that hasMany Attachments and everything worked well. I then
added Materials to my invoice and tried added Attachments to a
specific material associated
I have been using the Media Plugin by David Persson and I think it's
great and has saved me a lot of time. I started out with an Invoice
model that hasMany Attachments and everything worked well. I then
added Materials to my invoice and tried added Attachments to a
specific material associated
Hello, I just installed David Persson Media Plugin to use it with Ajax
uploader.
The tutorial from here:
http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakephp-media-plugin/
But my database have different field names. And I would like to save
some more information, not only
Hi there, I'm new to cakephp and trying to install Media Plugin in my
test app. By all accounts media plugin is the best plugin of it's
kind, the problem I have is I'm developing on my localhost on a
windows machine.
I get stuck when I get to doing the:
cake media init
chmod -R a+rwX app/webroot
the Media behaviors to user model $actsAs.
Its working perfectly in other controllers.
Anyway I found a solution:
I needed the media plugin in order to upload the user profile image.
I removed the 'Media.Coupler' from the user model $actsAs
and add this code at user controller upload_image action
I didn't change register action at all.
I just added the Media behaviors to user model $actsAs.
Its working perfectly in other controllers.
Anyway I found a solution:
I needed the media plugin in order to upload the user profile image.
I removed the 'Media.Coupler' from the user model $actsAs
More information required ...
- have you echoed $this-data on submit to see what data there is
- how are you calling save in the controller?
- have you looked at the sql dump to see what Cake is trying?
HTH, Paul
@phpMagpie
On Sep 15, 11:11 am, ZAky procsh...@gmail.com wrote:
adding media
)) {
[…]
$dirname =
'files/'.$this-Session-read('Auth.User.id').'/'.$this-
Post-id;
$this-Post-saveField('dirname', $dirname);
// transfert
} else {
// Error
}
}
The simplest would be to let Media plugin transfert in Media folder
adding media plugin, 'Media.Coupler', behavior to users plugin model
prevent creating new user.
I want to save the profile image path in users table.
Any suggestions?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
You have to save your post before upload the file.
in your Post_controller :
function add() {
[...]
if (!empty($this-data)) {
$this-Post-create();
if ($this-Post-save($this-data)) {
Thank you
Media plugin some how bind to the save function.
So How do I tell the media plugin not to run after save and run only when I
have the post_id?
On Wed, Sep 14, 2011 at 11:47 AM, BenJsno bench...@yahoo.fr wrote:
You have to save your post before upload the file.
in your
I save my posts files under /files/[user_id]/[post_id]/[image].
This mean I need to know the just seved post id in Post-transfer_to.
How do I achieve that?
Thank you
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
Here's a simple tutorial to help get you started:
http://sopix.wordpress.com/2010/12/28/media-plugin-of-cakephp-tutorial/
Ben
--
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
Anyone know where I can find a tutorial for David Persson's Media
Plugin Tutorial? Documentations seems scarce and questions here are
all relating to issues with the plugin, there doesn't seem to be a
starting point.
--
Our newest site for the community: CakePHP Video Tutorials
http
Hi Michal,
I run into the same problem and finally found that I had to remove the
'Media.Coupler' from the $actAs array.
Hope that works for you too!
Theclansman
On Jul 8, 10:42 pm, michalmalinowski mmichal.malinow...@gmail.com
wrote:
Hey, I have the same problem as
Hey, I have the same problem as Brad
http://groups.google.com/group/cake-php/browse_thread/thread/aa331e6a9938f242/779445eead7e9b12?lnk=gstq=saveall+media#779445eead7e9b12
I am able to edit record with attachment, change attachment, change
user data etc. But I can not create new record in the
hi, i am using media plugin 1.3 alpha in cakephp 1.3. I need to upload
files from 2 different models with different sizes. But there is only
one Filter configuration for the plugin. Is there a way around it so i
can use the plugin to generate different file sizes for different
models?
thanks
well.. i guess i solved the problem.
for anyone else who is facing a similar one, the solution is to copy
the configuration in the model file itself
On May 29, 11:17 pm, crazyDavid iamcrazyda...@gmail.com wrote:
hi, i am using media plugin 1.3 alpha in cakephp 1.3. I need to upload
files from 2
I'm using Media Plugin 1.3 beta with CakPHP 1.3. I've successfully
uploaded the images with the plugin. But how do i use the Media helper
to embed the image file uploaded in the view??? plz help!
Thanks!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check
Hello Folks,
I'm working on my first project with cakephp and I ran into an issue
when trying to
implement file uploads:
1) I'm trying to use the media plugin for my application. I'm having
problems to apply
the polymorphic behavior to the model. Here are my models and the
controller:
models
/707ab2cd6b9452403cd56fd4aac...
The fix has also been already propagated to the media plugin. In case it
doesn't work for you please open an issue
here:https://github.com/davidpersson/media/issues
or therehttps://github.com/davidpersson/mm/issues
- David
--
Our newest site for the community: CakePHP
explanation is that I know the author checks the group fairly
regularly and figured if there was a 'quick fix' he'd know about it.
The Media Plugin is an excellent example of a pluign and quite
complicated, I would much rather implement an 'official' fix than dive
in and start hacking it around myself
Hey,
I think this commit will fix the issues with the mapping between MIME-type
and name.
https://github.com/davidpersson/mm/commit/707ab2cd6b9452403cd56fd4aaccc8ec345919df
The fix has also been already propagated to the media plugin. In case it
doesn't work for you please open an issue here
More than one of my apps are doing this so I am very confused. I am
using Show hasMany Attachment. I try and create a new record and it
uploads and resizes the image and saves the record to my Attachment
model without a foreign_key but with the correct model (Show).
However, it does NOT save the
Anyone?
On Mar 22, 12:13 pm, designv...@gmail.com designv...@gmail.com
wrote:
Hi there,
Has anyone got any idea how to get the Media Plugin to recognise
Office 2007 files correctly?
I can upload old .doc files fine and they get put in the 'doc' folder,
and don't fail the mime validation
?
On Mar 22, 12:13 pm, designv...@gmail.com designv...@gmail.com
wrote:
Hi there,
Has anyone got any idea how to get the Media Plugin to recognise
Office 2007 files correctly?
I can upload old .doc files fine and they get put in the 'doc' folder,
and don't fail the mime validation rule
...@gmail.com
wrote:
Hi there,
Has anyone got any idea how to get the Media Plugin to recognise
Office 2007 files correctly?
I can upload old .doc files fine and they get put in the 'doc' folder,
and don't fail the mime validation rule, but it really doesn't
like .docxfiles..
Any
ups...
Ups, my bad. Should have been
Configure::write('Media.filter.image.s', array(
On Apr 25, 1:47 am, skimmas skim...@gmail.com wrote:
in my config/core.php I added
/* CAKE MEDIA PLUGIN */
require APP . 'plugins/media/config/core.php';
Configure::write('Media.filter.document.s', array
in my config/core.php I added
/* CAKE MEDIA PLUGIN */
require APP . 'plugins/media/config/core.php';
Configure::write('Media.filter.document.s', array(
'convert' = 'image/jpeg', 'compress' = 1.5, 'fit' =
array(100, 100)
));
Yet the media plugin is still generating a png image.
Do you
method to delete all
files (Transfert and filters)
app/models/mediafile.php :
pre
class Mediafile extends AppModel{
var $name = Mediafile;
//media plugin behaviors
var $actsAs = array(
'Media.Generator' = array(
'baseDirectory
Hi,
I have an other problem with media plugin.
when I upload a jpeg file with .jpeg extension, in my DB i have, for
exemple, picture.jpeg in the basename field.
But the Generator Behavior make filter versions with .jpg extension.
So i don't have a correct path for filter versions.
I have
something
my new app/model/mediafile.php :
class Mediafile extends AppModel{
var $name = Mediafile;
//media plugin behaviors
var $actsAs = array(
'Media.Coupler' = array(
'baseDirectory' = MEDIA_TRANSFER
Hi,
The coupler behavior's beforeSave method looks like it is doing too much
having too many sideeffects. I'll take a look at it and see if I can reduce
those to a mininum. Will get back and post the results than.
- David
--
Our newest site for the community: CakePHP Video Tutorials
Hello,
I would like to use the Media plugin in my application and my question
is
in media/models/behaviors/coupler.php, what is the goal of the line
104 ? is it usefull for something ?
line 104 : unset($Model-data[$Model-alias]);
In my exemple, I have a table Mediafiles
CREATE TABLE `mediafiles
Hi there,
Has anyone got any idea how to get the Media Plugin to recognise
Office 2007 files correctly?
I can upload old .doc files fine and they get put in the 'doc' folder,
and don't fail the mime validation rule, but it really doesn't
like .docx files..
Any suggestions?
d//t
--
Our newest
I'm trying to do something similar (as described in this thread
http://groups.google.com/group/cake-php/browse_thread/thread/9fdfef27f01e5ef7).
I'm able to POST my image and save it to a folder but I don't know how
to invoke the media plugin to make multiple sizes of that file. How
were you able
Hi Foroct,
I've answered you in the other thread.
- David
--
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
Hi,
When I try to edit a media file ex. I need to replace the image
The main image was replaced but the filter (an 'm' and 'l') image
wasn't replaced.
And the replaced image wasn't deleted.
Where I'm wrong?
Thanks in advance!
Alberto
--
Our newest site for the community: CakePHP Video
of a file in the current version of the media plugin. It
turned out that how, which and when to delete the generated versions is
highly application specific. However you can still take care of that
yourself for example in the before or afterDelete of your file model. See
https://gist.github.com/859371
Hi Alberto,
If I were you I'd just implement my own validation rule for that. See [1]
for how that is accomplished in the plugin. Be sure to also check the
chapter about that topic at book.cakephp.org.
[1]
https://github.com/davidpersson/media/blob/1.3/models/behaviors/transfer.php#L741
-
Hello Tan Cheng,
Just add a new input to your form:
echo $form-input('file', array('type' = 'file', 'label' = false,
'class' = 'imageUpload'));
echo $form-input('title');
Be sure $this-data looks somewhat like this in your controller action:
array(
'Gallery' = array(
'file' = '...',
Hi Will,
I think what you're searching for can be found at [1]. Use the method like
this:
$this-Post-save($this-data);
$file = $this-Post-transferred();
[1]
https://github.com/davidpersson/media/blob/1.3/models/behaviors/transfer.php#L461
- David
--
Our newest site for the community:
Hi,
I want to add a validate rule for my model in the CakePHP Media
Plugin.
I want that for this rule
'pixels' = array('rule' = array('checkPixels', '1366x768')),
the pixels have to be exactly se same of 1366x768 and not = of
1366x768
Is it possible to use this rule?
Thank in advance
Hi everyone,
I am now using David Persson's media plugin to handle the ajax upload
now.
But the upload form only shows the file type input, like
?php
echo $form-create('Gallery', array('type' = 'file'));
echo $form-input('file', array('type' = 'file', 'label
ad 1)
You have to use the path constant MEDIA to identify where the files
are stored and then combine it with the information for the requested
file - directory and filename - adding it all together to get the
filename with path information.
Read the configuration for the Media plugin here:
https
Hi All,
I am trying to use the media plugin (https://github.com/davidpersson/
media) for a funky API project. I have 2 issues right now.
I can POST susbmit a file and it gets saved. huzzah. (if you care,
they are CSV files)
what I need is:
1.) after save completes in the controller, I need
I'm trying to set up the Media plugin, but am having problems.
I have a PressRelease model, and while adding an entry I would like to
choose and upload a PDF file to associate with it. But when adding an
entry, the press_releases table receives an entry, and the attachment
table does not. *If I
I don't know anything about the Media plugin, however your problem may
be with how you have created your inputs in the view. Have you looked
at the structure of $this-data once the form has been submitted to
your action (admin_add)? In order for saveAll() to work. It should
look something like
Hi,
Have a look at the Media shell. It comes with the plugin and features one
specific task which may be helpful in your situation.
$ cake media make
Will prompt you for source and destination path and will then recreate
versions of each file.
- David
--
Our newest site for the community:
Ahhh! Brilliant!
Now I just have to work out how to run that on the server - I can run
the shell stuff locally, but no idea how to do it on my Media Temple
server... but awesome news, thanks!
d.
On Jan 28, 9:47 am, David Persson davidpers...@gmx.de wrote:
Hi,
Have a look at the Media shell.
Hi there,
I have very successfully got the Media/Attachments plugin working on
my new site, and I'm really impressed, but have run into a slight
problem...
The site is a rebuild of an existing site and has around 2000 images
attached to news stories (the app folder weighs in at around 900mb!),
1 - 100 of 163 matches
Mail list logo