Mind telling us what the issues were and what the resolution was?
I get bad mime types in an app too, and using swfupload gives me
application/octet-stream since it is coming via flash. I would be interested
in seeing what you did.

rockit-2 wrote:
> 
> 
> all issues resolved.
> 
> On May 24, 6:05 pm, rockit <[EMAIL PROTECTED]> wrote:
>> http://bin.cakephp.org/view/1381182794 shows the controller.
>>
>> On May 24, 5:21 pm, rockit <[EMAIL PROTECTED]> wrote:
>>
>> > got the issue fixed with the size & type, it was in my php
>> > installation had to increase max_upload.
>>
>> > However, when i go to save the type, it saves the first letter of
>> > $this->data['Digital']['filename']['name'];
>>
>> > this is the code i'm using to save the field.
>>
>> > //take the type of filename and store it in db under mimetype
>> > $this->data['Digital']['mimetype'] = $this->data['Digital']['filename']
>> > ['type'];
>>
>> > On May 24, 4:50 pm, rockit <[EMAIL PROTECTED]> wrote:
>>
>> > > I think i found part of the issue, for whatever reason it's not
>> > > sending the mime type for mp3's.  i did a print_r on the whole array
>> > > to see what data is being passed and it's sending the type or size
>> for
>> > > that matter.  is this an apache issue?
>>
>> > > i'm posting the data
>>
>> > > <form action="<?php echo $html->url('/admin/digitals/add'); ?>"
>> > > method="post" enctype="multipart/form-data">
>>
>> > > is there a different enctype i should be using?
>>
>> > > On May 24, 4:25 pm, rockit <[EMAIL PROTECTED]> wrote:
>>
>> > > > it's important that i store the mime type of the file upload. i
>> need
>> > > > to store binary data in the db for download later.  but i can't
>> seem
>> > > > to get the mimetype inserted properly.
>>
>> > > > code snippet:
>>
>> > > > $this->data['Digital']['filename'] =
>> $this->data['Digital']['filename']
>> > > > ['name'];
>>
>> > > > //take the type of filename and store it in db under mimetype
>> > > > $this->data['Digital']['mimetype'] =
>> $this->data['Digital']['filename']
>> > > > ['type'];
>>
>> > > > having an issue with getting the type of file to store in the db,
>> so i
>> > > > know what each file type is.  please help.
> 
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-MimeType-for-File-Upload-tf3812317.html#a10794235
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to