Search results

  1. E

    Download tokens can only be used by a specific IP

    In the download function in /core/includes/file.class.php you can check if the $_SERVER['REMOTE_ADDR'] is equal to $tokenData['ip_address']. Note that user's ips are likely to change. An user could start downloading a file, pause it and restart the download in the next day with another ip. They...
  2. E

    Load balance certain files

    Every file on every server? Where did you read that? Read my post again. My suggestion is to replicate files between servers. It doesn't mean to replicate all files in all servers. The files would be replicated N times in N servers. N would be a number of your choice. If N = 2, each file would...
  3. E

    sessions in mysql table

    The script uses session to cache data from themes and plugins. Thats not the best way to do it and it may be slower than having no cache at all. If you tune your mysql correctly, there is no need to cache this data. Mysql itself has a cache.
  4. E

    Load balance certain files

    Take a look here: http://forum.mfscripts.com/viewtopic.php?f=13&t=2258
  5. E

    Ability to delete folders better

    +1 I took a while to figure out how to edit folders.
  6. E

    [ACCEPTED] Clone file links upload

    The easiest way is to calculate the hash for the entire file. It would also be easy to upgrade since the script already have the md5 of all files. The ISPs here have 0.5mbps for upload. There are users here with 100mbps for download and ridiculous 0.5mbps to upload. In my case, calculating the...
  7. E

    [ADDED][v4.3] anti adblock plugin

    Re: anti adblock plugin You can show your ads and after a few seconds run javascript code to check if they are still in the html and visible. If they aren't, the user is using an adblock.
  8. E

    Custom URLs

    I will divide this suggestion in several parts: - There should be an option to translate URLs. This makes a huge difference in CEO. - It would be nice to handle files and folders with the prefix /files and /folder. The current index.php checks several files before calling the download function...
  9. E

    few suggestions

    +1 There should be an invoice table on the database and each payment method should have a different table with the payment details. The invoice table should have a field identifying the payment method and an ID field linking to a row on the payment method's table. Subscriptions should be...
  10. E

    [ACCEPTED] Clone file links upload

    SparkMD5 (https://github.com/satazor/SparkMD5) with a 50ms interval between chunks and 2mb buffer. Without the 50ms interval the cpu goes to 100% and it takes only 5 seconds.
  11. E

    Ftp server problem

    Maybe the script is receiving the upload in one server and sending it to another server after the upload.
  12. E

    API for yetishare

    Yetishare already has an url upload feature. You could build your own api and call the right functions using only php. Take a look at the file /core/page/ajax/url_upload_handler.ajax.php
  13. E

    [ACCEPTED] Clone file links upload

    Re: Clone file links upload It would take long to calculate the md5 in the client but it will be always faster than upload the file. The script may check the md5 while another thread uploads the file. If the md5 matches some file in the server, the upload is canceled. In my tests using the...
  14. E

    Protects the file .htaccess

    If you are using only nginx you can remove the .htaccess.
  15. E

    Check file before Upload

    I tested an ajax upload using the PUT method. It works! Check the html file in the attachments. Tested only on firefox 42. Use firebug to see the requests going.
  16. E

    File redundancy

    Hello. I know that the current script doesn't allow 2 identical files to exist, but it should. It would be nice to use the file server's free space to store copies of files. This will make possible to make load balancing by redirecting the download to the best server at the time. It would also...
  17. E

    Check file before Upload

    Hello Adam. It is possible. There are several ways to do it. - HTML5 already supports chucked file uploads as far as I know. - It may be possible to put a software in the client to calculate the md5 before sending the file. - The php may try to read the temp file during the upload. I'm not...
  18. E

    FileDescription ?

    I think tags would be better. It would make the search more effective.
  19. E

    [ACCEPTED] Clone file links upload

    Re: Clone file links upload If you put links from the same site on the remote upload form, the script will clone the file link (but not the file). The script checks for md5 and doesn't allow 2 identical files to exist. But it would be a nice feature to duplicate files using free space in...