An introduction to support on Envato Market

  • Envato staff look over every item before it can be sold on Envato Market.
  • Technical items contain help files to introduce you to the item and its components.
  • Authors can choose to support their items but this is optional and may vary.

Author support for this item

The author of this item, alcalbg, will respond to buyers’ questions and provide limited support through this item’s comments.

Additional information from alcalbg:

Support for my items includes:
  • Responding to questions or problems regarding the item and its features
  • Fixing bugs and reported issues
  • Providing updates to ensure compatibility with new software versions
Item support does not include:
  • Customization and installation services
  • Support for third party software and plug-ins
Go to comments

Frequently Asked Questions

Request for support


Before you send a request for support please read the entries below:

  • Support from Envato authors is optional but I’ll do my best to help.
  • Support doesn’t mean customization.
  • I am not available for customization. If you need a custom feature please hire a freelancer.
  • Read the full documentation file.
  • Check if your question is not already in the Item Discussion section.
  • I do not support errors caused by strong modification to the original files.
  • I can’t teach how to code in HTML, CSS, PHP or any other language.
  • I can’t give refunds, if you want a refund please contact Envato directly.
  • My time zone is GMT+1, so please keep in mind that my timezone might be different from yours.


How can I increase maximum upload file size?

There is a simple variable in FileGator called max_filesize but this will only work within your server limits. If you need to increase server limits see below…

Maximum file upload size is controlled by your web server and PHP settings inside php.ini file.

Follow these steps to increase maximum upload file size to 200MB:

1. Locate your php.ini file. On windows look into c:\Program Files\php\ or c:\xampp\apache\bin\ or simply search for php.ini. Sometimes there are two or more php.ini files (on some xampp installations) so you must figure out which one is used.

2. Inside php.ini file set parameters to something similar:

upload_max_filesize = 200M ;this is 200 Megabytes
post_max_size = 205M ;this must be greater then upload_max_filesize

3. Restart your web server to apply new settings. Don’t forget this!

4. Change FileGator’s configuration.php file around line 46:

'max_filesize' => 209715200, // This is 200 Megabytes

5. Refresh page in your browser and you’re done.

Here is a good link to explain this more deeply.

http://www.radinks.com/upload/config.php

Note: If you don’t have your own server consult your hosting provider about this.

If you’re stuck with your server’s config you can enable ‘upload in smaller chunks’ feature as described here: http://codecanyon.net/item/filegator/3041013/faqs/16792

(On Microsoft IIS requestFiltering settings can sometimes block large file uploads)

I cannot change admin password or add new user.

This is a permissions problem, your web server cannot write to /config/config.json file and therefore cannot save users data. Change permissions or file ownership and try again.

How can I disable direct links?

Replace .htaccess file in your repository folder with the one from this archive: http://file-gator.com/gator/denyfromall.zip

In addition, open configuration.php and set both, ‘allow_file_links’ and ‘use_lightbox_gallery’ to false.

'allow_file_links' => false,
'use_lightbox_gallery' => false,

Note that this will not work on Microsoft IIS / Nginx servers.

when I hit the “folder-structure”-symbol I see a pop-up saying “Please wait…”

It will take some time to generate full tree if you have 50+ folders and it will fail if script execution time is set too low.

You can disable simple_copy_move option (set to false inside index.php) and use cut/copy/paste model without folder structure tree.

This can also happen if you don’t have standard PHP libxml extension installed because FileGator relies on DomDocument class to generate tree view.

Direct links and image preview doesn’t work, I seems that URL is wrong.

Direct links and image preview may not work if you set repository folder outside FileGator’s folder. Although you can use any existing folder as a repository, including folders outside web root, you must disable file links, email links and lightbox gallery in this case.

Two new config parameters were introduces in v4.2.3 ‘direct_links_baseurl’ and ‘direct_links_basedir’ to support direct links when repository is configured outside the main folder.

Is it possible to grant several users access to the same files?

Absolutely, you can create two (or more) different users on the same folder, one with full permissions and other with read&upload permissions for example.

Even better, you can create one user with full permissions and within this user’s home folder create other users each having one subfolder as a home, this way first user will act as superuser and he can see folders of other users while others cannot go up to superuser folder. See example:

/filegator/repository/
/filegator/repository/john/
/filegator/repository/maria/

In this case give your superuser access to /filegator/repository/ and he will also see John’s and Maria’s folders.

Is it possible to have a max size for each folder?

There is a beta feature currently in testing phase. You can download this additional script from here. You can put it inside filegator/config/ folder and it should be executed periodically via cron job, usually every 5 minutes. On top of the script you can set max size limit for directory. This script will search for directories found in users config which exceeds defined size limit and revoke write and upload permissions for users exceeding this size limit.

IMPORTANT: Support and help for this beta feature is NOT available.

Note on nginx servers

Although nginx is not fully tested and supported, it has been reported that FileGator works on those servers just fine.

To increase upload max file size this must be added to nginx configuration:
client_max_body_size 100M;
Because nginx doesn’t use .htaccess rules, in order to prevent php script execution in repository folder – this must be added to nginx config at server section:
location ~* /filegator/repository/(.+)\.php$ {
        deny all;
    }

How can I update FileGator?

Once you purchase the script you can update to latest version free of charge. If you have version 2.2 or higher follow the instructions:

  • Backup everything.
  • Download the script from CodeCanyon again (http://codecanyon.net/downloads).
  • Replace all files and folders except “repository” and “config” folder.
  • If necessary, update configuration options in your new index.php file.
  • Check if .htaccess need to be replaced inside “repository” and “config” folder.

If you have version 2.1 or below replace all files.

For smaller, specific updates please check main page and “Changelog” section for detailed instructions which specific files need to be replaced.

Can I customize the colors and buttons?

You can change colors inside stylesheet CSS file located here:

filegator/include/views/style.css

For example you can change background color by editing 3rd line.

You can also change button colors by editing this CSS file:

filegator/include/foundation/stylesheets/foundation.css

Styles for buttons are between lines 602-693

Any way I can force download files? When sending a link to a movie file, for example, the movies starts to play in the browser, instead of being downloaded.

Add this to repository .htaccess file and download will be forced for listed extensions.

AddType application/octet-stream .wmv
AddType application/octet-stream .avi
AddType application/octet-stream .mov
AddType application/octet-stream .mp4
AddType application/octet-stream .mp3

Is there a signup functionality?

Yes, this feature is implemented and you only need to switch it on inside configuration file.

Can I upload files in smaller chunks avoiding server’s upload_max_filesize limit?

Yes, you can activate that feature by editing 3 files:

filegator/include/blueimp/js/jquery.fileupload.js (around line 101), Set chunk size here:
maxChunkSize: 50000,
filegator/include/blueimp/server/php/upload.calss.php (around line 39), Set this option to false:
'discard_aborted_uploads' => false,
filegator/include/file-gator.php (around line 1322), remove or comment this line so you can set filegator’s max_filesize option to higher value:
gator::error('Config param max_filesize is bigger than php server setting: post_max_size = '.$php_post_max_size.', upload_max_filesize = '.$php_upload_max_filesize);

Clear browser’s cache and you are ready to go. Note that upload in chunks is not available in Microsoft Internet Explorer.

Can I add some actions after file is uploaded? like send an email notification or change the file-name?

Yes, look for this line in filegator/include/blueimp/server/php/upload.class.php

move_uploaded_file($uploaded_file, $file_path);

and add you custom code after or before that line, something like this email notification:

mail('me@example.com', 'Subject', 'New file uploaded');

You can access current user’s parameters such as username, email, homedir or permissions via $_SESSION[‘simple_auth’] variable. See this example:

mail('me@example.com', 'Subject', 'New file uploaded by the user: '.$_SESSION['simple_auth']['username']);

The folders inside “folder structure” are ordered strangely. Can I use different order?

Sorting in “folder structure” modal window is not possible due to PHP and RecursiveDirectoryIterator function limitation. It can be done with other functions but it would be very slow, especially when dealing with large and deep directory structures. In other words this is a compromise between speed and usability.

How can I change default sorting?

Default sort is by ‘name’, ascending. If you want to change that open include/file-gator.php and search for this:

$_SESSION['sort']['by'] = 'name';
$_SESSION['sort']['order'] = 1;

you can replace ‘name’ with ‘date’ or ‘size’ and change order to -1 for descending.

You must log out and log in again to apply this changes.

I want to disable sign in process, I just want one user who is always signed in

Open configuration.php file and enable guest account:

'allow_guests' => true,

...then login as admin and give full access rights to the guest.

DO NOT use this setup on public servers since everyone could write to your filesystem

How can I add a download link next to files?

Open this file include/views/main-filelist.php and search for this code:

<button type="button" class="action-info" data-type="<?php echo $file['type']?>" data-link="<?php echo gator::encodeurl($file['link'])?>" data-name="<?php echo $file['name']?>" data-crypt="<?php echo $file['crypt']?>" data-size="<?php echo $file['size']?>" data-time="<?php echo date(gatorconf::get('time_format'), $file['time'])?>"></button>
You can add the following code after that button:
<a href="<?php echo gatorconf::get('base_url').'/?download='.$file['crypt']?>"><strong>Download</strong></a>

Note on security

Allowing users to access your server and files can lead to security risks. That’s why FileGator has a whole set of security features implemented out of the box reducing that risk to minimum. These features include:

  • Users can login to system only if you grant them access.
  • You can grant read-only permissions and disable upload and write operations.
  • Special .htaccess file inside repository folder prevents users from executing php and other scripts. Check if this is working (see below).
  • Filesystem operations between browser and server can be encrypted with mcrypt function. This can be enabled with config parameter encrypt_url_actions.
  • Users cannot exit their own home folder.
  • In users database file passwords are encrypted. This file is protected with .htaccess and can be stored outside web root folder on secure location. You can also use database for this.

If for some reason you need very strong security you can improve security even more by following these security guidelines:

  • Always use the latest FileGator version.
  • Pick strong passwords for users and admin, disable changing passwords if necessary to prevent users from picking weak passwords.
  • Relocate config/config.json file outside web root folder or use database to store users info.
  • Check if users can execute php scripts by uploading test.php file to user repository. If 403 access forbidden error is thrown when user clicks on test.php file then this security feature is working. Beware that .htaccess works on Apache servers only.
  • Enable url encryption for filesystem actions in config section (encrypt_url_actions = true). When this function is enabled server will accept only encrypted filenames for all operations.
  • Grant access to the users you trust, not everyone.
  • Enable ssl on your server and accept only https connections. This way all communication between user and server will be encrypted. You may need to adjust base_url inside config.
  • Use repository folder outside web root (public server path) and disable “allow_file_links” and “use_lightbox_gallery” in configuration.php
  • Do not use shared hosting or shared servers.
  • Test everything with non-critical data.

If repository folder is under filegator (or under any other “public” server path) then files will be accessible trough the URL and users knowing the right URL can download the file. If you want to hide files completely you can still do that by setting repository folder outside public_html (on location not accessible via web). As an alternative you can edit .htaccess file inside repository folder and put “Deny from All” there which will block all direct file access. If you do this, users can only use download button inside filegator to download files, email and direct links will have to be disabled in this case (configuration.php)

And remember, you are solely responsible for your files, server and data. If you have very sensitive data do not use this or any other software or digital storage – store your data in safe-deposit box in a bank you trust.

Beta Features

I built a simple cron job php script which can help setting storage limits per each home directory. You can download it from here: http://file-gator.com/gator/cron.zip.

FileGator successfully tested with nginx 1.2.8 & php-fpm

Note: Beta Features are released for developers and testing purposes. Please back up everything before trying beta features and please send some feedback. Thanks.

Is there a way I can force the uploaded file to overwrite the current file of the same name?

Small code customization is required for this, inside include/blueimp/server/php/upload.class.php replace this:

$file_name = $this->upcount_name($file_name);

with this:

unlink($this->options['upload_dir'].$file_name);

Is it possible to have the image preview mode be the default view, rather than having to toggle it every time?

Can I download a folder?

You cannot download entire folder directly but you can zip a folder and download this zip archive instead. See this video tutorial: https://www.youtube.com/watch?v=iM7qEsNSui8

Make sure you have zip feature enabled inside configuration.php (‘use_zip’ => true,) which is ‘on’ default.

When to contact Envato Support

Authors are experts on their own items, but if you're having trouble using Envato Market you should come straight to Envato Support.

by
by
by
by
by
by