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

TOPIC:

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

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
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

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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 following user(s) said Thank You: MorganL

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

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

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started