Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] File Upload Issues

File Upload Issues 24 Feb 2016 14:24 #13837

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
File upload not working both in sanbox and on other host.

on my host both checks cause errors
(with txt, and doc on default list of extensions and mimes):
//CHECK EXTENSION        
        if (!$this->checkExtension($file->extension))
		{
			$app->enqueueMessage(JText::sprintf( "XXXXXX_UPLOAD_THIS_FILE_EXTENSION_IS_NOT_ACCEPTED_THE_ACCEPTED_FILES_ARE",
								$file->extension,
								$this->getAllowedExtensions()
								), 'notice');
			return false;
		}

and
		//CHECK MIME HEADER
		$this->file->mime = $this->getMime($this->file->tmp);
		if (!$this->checkMime($this->file->mime))
        {
			$app->enqueueMessage(JText::sprintf( "XXXXXX_UPLOAD_MIME_TYPE_NOT_VALID_ALLOWED_MIMES_ARE",
								$this->file->mime,
								$this->getAllowedMimes()), 'error');
			return false;
		} 
Last Edit: 24 Feb 2016 14:34 by krasy.
The administrator has disabled public write access.

File Upload Issues 22 Mar 2016 22:00 #13862

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Was it working... is it a new field in your table? or have you recreated the field by chance?

I am guessing
Have you set the allowed file types in the field properties in your table?
by default there is no file type / extension pre-selected
you need to tick the check box on the right of the field type in properties

a fresh field that has not been configured will fail to upload anything

(although in Google Chrome Browser i did i find that i need to just widen the properties box a little so that i can see the allow check box)
The administrator has disabled public write access.
The following user(s) said Thank You: krasy

File Upload Issues 24 Mar 2016 10:22 #13869

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
BTB300
thx,
you made my day :)

The only little "hidden" place in my browser i know
in the properties entry to tasks buttons,
where the redirection to other then default views can be set.
The administrator has disabled public write access.

File Upload Issues 25 Mar 2016 05:09 #13870

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
No Worries Krasy
Done it once or twice myself... so can we close the ticket?
The administrator has disabled public write access.
The following user(s) said Thank You: admin

File Upload Issues 25 Mar 2016 09:35 #13871

  • krasy
  • krasy's Avatar
  • Offline
  • Premium Member
  • Posts: 90
  • Thank you received: 8
  • Karma: 5
yes its solved,
It was working, when i posted but i didn't know how to use it properly.
please close the ticket.
The administrator has disabled public write access.

File Upload Issues 25 Mar 2016 12:38 #13872

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Thanks BTB300 for moderation
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: BTB300

File Upload Issues 04 Apr 2016 18:13 #13875

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
admin wrote:
Thanks BTB300 for moderation
No Worries... sorry have not been around for a while (life got in the way)
The administrator has disabled public write access.
The following user(s) said Thank You: admin

File Upload Issues 18 Apr 2016 09:32 #13915

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Great !
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.080 seconds

Get Started