Welcome to the F.A.Q. section!

Simple File Upload

I get no pop-up or CAPTCHA not working?

All my extensions (and many templates and other extensions) use jQuery. jQuery must only be loaded once. There are different approaches and some use jQuery.noConflict() but I have opted to have the option to "turn off" jQuery loading in my extensions.

So, start by checking the JavaScript Error in your Browser... If you are using FireFox (which I recommend) or Chrome hit CTRL+SHIFT+J to open "Error Console". At the top of it there are buttons, click the "Error" button to filter errors only and then click "Clear" to get rid of any unrelated errors. Then open the page where Simple File Upload resides and see if you get any new errors in the error console, especially indication "$jquery", "$jqspu", "$jqsfu", "$jqsfl" or "$function".

If you are using Internet Explorer just hit F12 and then find the "Script" tab which will show you the errors as well. In Opera go to the menu Tools->Advanced->Error Console. Safari users use Cmd+Alt+C to bring up the console.

If you see any of those errors you need to alter the jQuery loading settings for SPU. First try using "FancyBox only" for jQuery and if you still get errors set it to load as "include". These parameters are found in the Advanced Parameters for all my extensions.

The "Include" option will load the dependency scripts for FancyBox inline with my code. The preferred way of loading it is to do it in the header so Joomla handles it for you but if you have another template or extension that loads jQuery inline it won't be loaded if the dependencies are loaded prior to jQuery. That is why you sometimes must also load the FancyBox dependencies as "inline" to avoid this problem...

 

I am getting a file size error, what's wrong?

There are several options that must be set to accommodate the maximum upload size.

The first and most obvious place to check what size you have set for Simple File Upload (SFU) is the "Max. file size setting". It must me set in bytes which means that the number will be fairly big and here follows a few examples to set:

500 kb = 512000 bytes

1 Mb = 1048576 bytes

2 Mb = 2097152 bytes

(Where 1024 bytes = 1 kilo byte [kb] and 1024 kb = 1 Mega byte [Mb])

If you set a higher number in SFU but you still can not upload large files you need to check the settings for PHP on your server. SFU can NOT override any server settings so if SFU settings is 2 Mb but server PHP settings is 1 Mb, 1Mb will be the maximum size that can be uploaded.

If you need to check your server settings you can use phpinfo(). Download this package: http://wasen.net/downloads/phpinfo.zip

Once downloaded unpack the "phpinfo.zip" to a file called "phpinfo.php". Place the .php file on your server and then use your browser to navigate to it. You will see a page which starts with the text PHP and shows your current installed version on the server. Below that you will see a long list of settings and information which are fetched from the "php.ini" file for PHP. Use extreme caution if you must edit the "php.ini" file!

First of all make sure that you are infact able to upload to the server by checking that "file_uploads" is set to "On". Then search for the value "upload_max_filesize" and see what it says. If it says for example 2M it means that the maximum file size the server will accept is 2 Mb.

Even if this value is higher there are a few other settings that works in conjunction with the "upload_max_filesize" setting. You also need to check the "post_max_size" which should be set to the same as "upload_max_filesize".

Other settings that also might interfear are:

max_input_time

memory_limit

max_execution_time

This would be if the upload takes too long to coomplete or if the server don't get enough memory to be able to handle to file upload.

If you are using a hosted service it is quite common that the maximum file size is limited to around 2 - 5 Mb. You can always contact your provider to ask if they can raise your limit as you normally don't have access to the php.ini file on a hosted service.

Please review this article for additional information: http://www.radinks.com/upload/config.php

 

E-mail not being sent after upload

It is quite common for ISP's to block any "unknown" "from e-mail" address as it otherwise could be "mail forwarding" which could be spam.

So, the default e-mail from address is " This email address is being protected from spambots. You need JavaScript enabled to view it. " but if your ISP won't allow mailing out from an unknown domain you might need to change it to something within your own domain.

For example, my own domain "wasen.net" won't allow mailing out from a different domain so I have my "From e-mail address" set to " This email address is being protected from spambots. You need JavaScript enabled to view it. ". This setting is found under "Other Parameters".

Some ISP even demand that the e-mail address actually exist, meaning that not only is "wasen.net" verified but also that "noreply" exists as a valid e-mail. In that case you have to use a valid (=existing) e-mail address in your domain.

What are the filetypes supported?

First of all, the file-type is NOT the extension of the file!

That means that a JPG image is not to be added as "jpg" but as it MIME (Multipurpose Internet Mail Extensions) Type. The MIME type for jpg/jpeg is "image/jpeg", and thus "image/jpeg" is to be added for allowing "MyPicture.jpg" to be uploade.

 

Any filetype is supported however and if you would like to allow any type, just add a * (asterisk).

Use this page to find the list of types you want to add.

You can also download the following PDF (MIMETypeCollection.pdf) which contains the list from Wikipedia.com.

Can I place the Upload form in an Article?

Yes, you can.

First, if you want to have multiple modules, start with making a "duplicate" (=copy) of the first one. Tick the box in front of your first instance of Simple File Upload/Lister and click the button "Duplicate" from teh top right menu.

Once you have decided which module to alter, enter it in edit mode from Module Manger.

In the module you will give a custom position for it. Position is found to the LEFT and would normally be "left", "right" or some of the preset values in the dropdown. Do not use any of the preset values, instead type in "SFU" for example. You can add any position you like, just remember it!

Make sure the module is set to "Enabled" and you must also set the "Menu Assignment" for the module to show at the page (=menu) where you will load the article.

 

Then go to the "Plugin Manger" and find "Content - Load Module" and make sure it is enabled.

 

Once this is done you head over to the article and add this text where you want SFU to show up:

 

 Choose a file to upload:

 

SFU is the POSITION you set in the module!

 

More info; head over to this Article:

http://xxx

end

 

Simple PopUp

Where can I get help on the features?

On my page called "PRO" you will find two PDF's. One is the manual describing all the features and the other is the PDF showing my Joomla Article with all the sample scenarios also found on the same page.

Have a look here: http://wasen.net/index.php/projects/simple-popup/14-wasen-net-content/73-simple-popup-advanced

No "pop" from Simple PopUp?

If your SimplePopUp simply won't "pop" it might be a jQuery conflict but first make sure the plugin is Enabled in the plugin manager in the Joomla back-end!

All my extensions (and many templates and other extensions) use jQuery. jQuery must only be loaded once. There are different approaches and some use jQuery.noConflict() but I have opted to have the option to "turn off" jQuery loading in my extensions.

So, start by checking the JavaScript Error in your Browser... If you are using FireFox (which I recommend) or Chrome hit CTRL+SHIFT+J to open "Error Console". At the top of it there are buttons, click the "Error" button to filter errors only and then click "Clear" to get rid of any unrelated errors. Then open the page where Simple PopUp resides and see if you get any new errors in the error console, especially indication "$jquery", "$jqspu", "$jqsfu", "$jqsfl" or "$function".

If you are using Internet Explorer just hit F12 and then find the "Script" tab which will show you the errors as well. In Opera go to the menu Tools->Advanced->Error Console. Safari users use Cmd+Alt+C to bring up the console.

If you see any of those errors you need to alter the jQuery loading settings for SPU. First try using "FancyBox only" for jQuery and if you still get errors set it to load as "include". These parameters are found in the Advanced Parameters for all my extensions.

The "Include" option will load the dependency scripts for FancyBox inline with my code. The preferred way of loading it is to do it in the header so Joomla handles it for you but if you have another template or extension that loads jQuery inline it won't be loaded if the dependencies are loaded prior to jQuery. That is why you sometimes must also load the FancyBox dependencies as "inline" to avoid this problem...

External URL showing error or "The requested content cannot be loaded"

That is most likely because of restrictions on your server. You are not allowed to load an external URL from PHP. 
You could try and create a local html file with an iFrame in it loading the form and then point to that html file for the popup instead. 
If that works is again up to the server settings but could be worth a try... 

You can also try and recompile Apache with TTF (Freetype) enabled if you are using Apache...

end

 

Simple File Lister

Next>> or sub-directories not opening?

If your next button or sub-directories are not opening it might be a jQuery conflict.

All my extensions (and many templates and other extensions) use jQuery. jQuery must only be loaded once. There are different approaches and some use jQuery.noConflict() but I have opted to have the option to "turn off" jQuery loading in my extensions.

So, start by checking the JavaScript Error in your Browser... If you are using FireFox (which I recommend) or Chrome hit CTRL+SHIFT+J to open "Error Console". At the top of it there are buttons, click the "Error" button to filter errors only and then click "Clear" to get rid of any unrelated errors. Then open the page where Simple File Lister resides and see if you get any new errors in the error console, especially indication "$jquery", "$jqspu", "$jqsfu", "$jqsfl" or "$function".

If you are using Internet Explorer just hit F12 and then find the "Script" tab which will show you the errors as well. In Opera go to the menu Tools->Advanced->Error Console. Safari users use Cmd+Alt+C to bring up the console.

If you see any of those errors you need to alter the jQuery loading settings for SPU. First try using "FancyBox only" for jQuery and if you still get errors set it to load as "include". These parameters are found in the Advanced Parameters for all my extensions.

The "Include" option will load the dependency scripts for FancyBox inline with my code. The preferred way of loading it is to do it in the header so Joomla handles it for you but if you have another template or extension that loads jQuery inline it won't be loaded if the dependencies are loaded prior to jQuery. That is why you sometimes must also load the FancyBox dependencies as "inline" to avoid this problem...

end

Please consider supporting my efforts.

Amount: 

Tuesday the 21st. Wasen.net.