Welcome, Guest
Username: Password: Remember me

TOPIC: Mime type not valid

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

  • arslan324
  • arslan324's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

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

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
check dowloaded version of component,
in sandobx there are some limiations
The administrator has disabled public write access.

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

  • arslan324
  • arslan324's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
This code has been working fine for last 1 year.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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

  • arslan324
  • arslan324's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.
Time to create page: 0.116 seconds

Get Started