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

TOPIC:

File Upload Issues 24 Feb 2016 14:24 #13837

  • krasy
  • krasy's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 90
  • Thank you received: 8
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;
		} 

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

Last edit: by krasy.

File Upload Issues 22 Mar 2016 22:00 #13862

  • BTB300
  • BTB300's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
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 following user(s) said Thank You: krasy

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

File Upload Issues 24 Mar 2016 10:22 #13869

  • krasy
  • krasy's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 90
  • Thank you received: 8
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.

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

File Upload Issues 25 Mar 2016 05:09 #13870

  • BTB300
  • BTB300's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132
No Worries Krasy
Done it once or twice myself... so can we close the ticket?
The following user(s) said Thank You: admin

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

File Upload Issues 25 Mar 2016 09:35 #13871

  • krasy
  • krasy's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 90
  • Thank you received: 8
yes its solved,
It was working, when i posted but i didn't know how to use it properly.
please close the ticket.

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

File Upload Issues 25 Mar 2016 12:38 #13872

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Thanks BTB300 for moderation
Coding is now a piece of cake
The following user(s) said Thank You: BTB300

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

File Upload Issues 04 Apr 2016 18:13 #13875

  • BTB300
  • BTB300's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 415
  • Thank you received: 132

admin wrote: Thanks BTB300 for moderation

No Worries... sorry have not been around for a while (life got in the way)
The following user(s) said Thank You: admin

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

File Upload Issues 18 Apr 2016 09:32 #13915

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Great !
Coding is now a piece of cake

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

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

Your client support is really awesome + rich and powerfull software.
foo42 (Forum)

Get Started