Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Invasive error message when uploading wrong extension type

[FIXED] Invasive error message when uploading wrong extension type 01 Jan 2017 23:42 #14893

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Mime type now seems to be enforced HOWEVER the error message is still majorly invasive

It tales you to a full page error (in sandbox or personal site) that reads (proper error is at the end)
An error has occurred while processing your request.

You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a mistyped address
a search engine that has an out-of-date listing for this site
you have no access to this page
Go to the Home Page

 Home Page

If difficulties persist, please contact the System Administrator of this site and report the error below.

0 This file extension ( pdf ) is not accepted, the accepted files are : jpg,jpeg,png
Morgan Leecy MCSE

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

[FIXED] Invasive error message when uploading wrong extension type 02 Jan 2017 12:22 #14895

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
True...

This is because I am using the 'throw' method, and it is catched by Joomla.
Fixed. Tell me if you prefer it now....

The item controller now catches it and queue a simple warning message.
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.091 seconds

Get Started