• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Changing the path of upload center

Scheduled Pinned Locked Moved Technical Support
4 Posts 2 Posters 1.7k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanatisharif
    wrote on last edited by sanatisharif
    #1

    Hi,
    assume we have a linux server running nginx. We have installed NodeBB under a path like </home/user/Nodebbpath> and it's accessible through a domain like forum.mydomain.com. On the same server we have a download server which has another path and it is accessible through dl.mydomain.com. Now when I upload files in NodeBB they will be placed in NodeBB path, But I want them to be uploaded in my download server path so they will be downloadable through my download server domain(dl.mydomain.com)
    How may I do that ? is there a section on admin panel for setting this ? or a plugin that I should install? If there is no implemented way , can you help me do this anyway?

    1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #2

    Have you tried using the upload_path property in config.json?

    S 2 Replies Last reply
    1
  • S Offline
    S Offline
    sanatisharif
    replied to julian on last edited by sanatisharif
    #3

    @julian suppose we change upload_path after that How to tell nodebb that address of the uploaded file start with another domain?
    for example we upload file.rar through nodebb composer ( post editor ), we wan't editor ( composer ) return url of file like dl.mydomain.com/file.rar.
    so I think if I change only upload_path editor will be return forum.mydomain.com/path/to/downloadServer/file.rar.

    @sanatisharif :

    We have installed NodeBB under a path like /home/user/Nodebbpath and it's accessible through a domain like forum.mydomain.com.
    On the same server we have a download server which has another path and it is accessible through dl.mydomain.com.

    @julian If I am wrong, please help me!

    1 Reply Last reply
    0
  • S Offline
    S Offline
    sanatisharif
    replied to julian on last edited by
    #4

    @julian
    https://github.com/NodeBB/NodeBB/pull/4007

    I have added this feature to the forum, we can now add nice features,Like FTP and SFTP support!

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development