1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can i store large files in folder to be downloaded only by members

Discussion in 'XenForo Questions and Support' started by aiman.h.kallaf, Apr 11, 2012.

  1. aiman.h.kallaf

    aiman.h.kallaf Active Member

    I have some large files and i want to save them in some folder where they can be only accessed by members who got the permissions like ( VIP members ).
    Can this be done ?
     
  2. Brentnauer

    Brentnauer Well-Known Member

    I'd like to know this as well.
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Create a private forum and upload them there.

    Only those with access to the forum will be able to download them.
     
    aiman.h.kallaf likes this.
  4. aiman.h.kallaf

    aiman.h.kallaf Active Member

    yes but if one of them shared the link it will be accessible to everyone and anyone can download it then
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    The attachments directory is php protected so only those with the relevant permissions can access the files.
     
  6. aiman.h.kallaf

    aiman.h.kallaf Active Member

    Thanks brogan ,
     
  7. Brentnauer

    Brentnauer Well-Known Member

    Does the size limit come from xF, or PHP limitations?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    There is a maximum file size limit in the ACP.
    There are also limits (variables) in PHP and SQL.
     
  9. Brentnauer

    Brentnauer Well-Known Member

    Does the Flash uploader depend on those PHP/SQL limits?
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes. Here are some server settings that may be limiting (other than the limits defined in your XF options):

    PHP:
    max_execution_time
    memory_limit
    post_max_size
    upload_max_filesize

    MySQL:
    max_allowed_packet
    max_packet_size
    wait_timeout
     
    Brentnauer likes this.
  11. Brentnauer

    Brentnauer Well-Known Member

    Thanks, Jake!
     
  12. aiman.h.kallaf

    aiman.h.kallaf Active Member

    ok can i do this then , using my username i upload a file ( movie.mp4 25 kb ) then i go to the file system and search for the file , it will be longe name for it and replace it from the file manager with ( movie.mp4 "with the full xenforo name "" ) the new size is about 500 mb
     

Share This Page