Saturday, May 30, 2009

Re: Problem Uploading Flash

On Sat, May 30, 2009 at 3:07 PM, Arak Tai'Roth <nielsen.dustin@gmail.com> wrote:
>
> As far as I'm aware if the extension is .flv, then shouldn't the
> mimetype be video/x-flv?

The behavior depends upon the whatever the browser says is the MIME
type. You can see it in the data array. If you're not familiar with
the data sent in the case of uploads, do this:

if (!empty($this->data))
{
die(debug($this->data));

> The file size is way less then the maximum file size that's allowed,
> it's only a 6 second flash video that I'm just using to test this.

Again, look in the data array to be sure.

> However I'm not sure how to log the error key or anything as it's
> being uploaded.

$this->log($this->data['the_array_key']);

See here for the error explanations:

http://ca3.php.net/manual/en/features.file-upload.errors.php

> The permissions are fine, that's one of the first things I checked,
> the folders that are being written to are all set at 775.

Who owns the dir, though? That's only open for the owner & group. If
the apache user isn't one of those, the file cannot be saved.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: