Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Mime type not valid 20 Oct 2014 13:15 #12707

Hello admin and all respected members.
I am facing an error recently started occurring is: Mime type not valid (application/octet-stream), allowed Mimes are image/bmp - image/gif - image/jpeg - image/png :
Impossible to upload file : imagename.jpg

I am getting error while creating new item with uploading image.
I have tried to resolve this issue but could not. Please tell me if anyone knows that how to fix it.

Thanks

Please Log in or Create an account to join the conversation.

Mime type not valid 20 Oct 2014 14:03 #12708

check dowloaded version of component,
in sandobx there are some limiations

Please Log in or Create an account to join the conversation.

Mime type not valid 20 Oct 2014 14:06 #12709

This code has been working fine for last 1 year.

Please Log in or Create an account to join the conversation.

Mime type not valid 20 Oct 2014 18:51 #12711

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It is a classic.
You are using 'File' type I guess..

When you use a data type 'Image', then some mimes are automatically defined by default.
If you are using 'File' data type, it is sligly diferent (mostly nothing) and the mimes are not defined by default. Open the properties and define them.

Does it helped you ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Mime type not valid 21 Oct 2014 09:25 #12714

Thank you admin for reply.

I am using "Image" not "File". Actually somehow this error is occurring while this component has been running perfectly since last year. Do I need to change code or something else?

If we can fix that thing from code, then please guide.

Thanks

Please Log in or Create an account to join the conversation.

Mime type not valid 30 Oct 2014 17:28 #12724

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Ok, I must admin I don't know.

For me it works.

Well, don't worry, I will check your component if you tell me the PTL (Project / Table / Layout)
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.094 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started