Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] MIME type not being enforced

MIME type not being enforced 22 Dec 2016 00:42 #14860

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
So I have an IMAGE field, and I have restricted type to JPG / JPEF and PNG (by deleting all the others)

However I am alllowd to upload pretty much anything.. i.e PDF with no error

This happen on sandbox with any project.

Can you check enforcement on file / image uploads

Thanks
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

MIME type not being enforced 22 Dec 2016 12:32 #14865

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
It's strange because i work a lot with Images in a lot of context ...
And it works fine for me with all my components.
I have made a new test right now with an image field that not allow '.bmp'

SANDBOX TEST :
An error has occurred.
 0 This file extension ( bmp ) is not accepted, the accepted files are : gif,jpg,jpeg,png
Last Edit: 22 Dec 2016 13:38 by liubov.
The administrator has disabled public write access.

MIME type not being enforced 22 Dec 2016 12:34 #14866

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I am gonna check that.

I am currently working on a big feature.
I wanted to release on monday, but it will be released next monday :

ORM for Christmas.
It is a pure brillance my friends...
Coding is now a piece of cake
Last Edit: 22 Dec 2016 12:35 by admin.
The administrator has disabled public write access.

MIME type not being enforced 22 Dec 2016 16:23 #14867

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
IN reply to the testing by lioubov above

I have created (in sandbox) a field of IMAGE and removed all image typed form the list except JPG and PNG

These I have TICKED as allow

I have just been able to upload a PDF file with no errors (and save the record)

Observation 2: when I do cause an error (bye file being too large) the error message is massively invasive as it goes to a new page with a full screen error as opposed to a nice tool tip
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.
The following user(s) said Thank You: admin

MIME type not being enforced 23 Dec 2016 10:14 #14870

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
You re right Morgan.

- my removed type files are still in the config windows (unckecked, but still here)
- I have an error message (show above) BUT the item is saved in the DB.

so, something has changed here, and must verified.

a thousand apologies! :unsure:
Last Edit: 23 Dec 2016 10:18 by liubov.
The administrator has disabled public write access.

MIME type not being enforced 29 Dec 2016 16:51 #14879

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
I know it's holiday time, but this particulsr bug is a killer, if it could be looked at quite in new year, that would be awesome!
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

MIME type not being enforced 30 Dec 2016 11:36 #14882

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
As promised after the works I have been achieving, this ticket is now closed.
It was my fault....
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL
Time to create page: 0.077 seconds

Get Started