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.068 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started