• 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

User avatar upload problem - path

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 2.0k 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.
  • Danny McWilliamsD Offline
    Danny McWilliamsD Offline
    Danny McWilliams
    wrote on last edited by
    #1

    Hi guys, newbie here. I have installed NodeBB and have encountered a slight problem with uploading avatars - NodeBB is following the wrong path, likely because of an error I made installing the forum.

    My server install was a one-click Ghost blog setup on DigitalOcean, from which I used the BurnAfterCompiling guide to install NodeBB. Most things went well; though I installed NodeBB in /forum/forum by accident. I simply moved the files into their parent folder.

    However, this has caused a problem when I attempt to upload a user image; when I do so it appears to upload successfully. I checked the path to the image immediately after it was uploaded, and it is at /forum/uploads/profile/1-profileimg.jpg?1418895235162

    When you navigate away from your profile page, the image appears broken. Checking the path to the image shows NodeBB is trying to access: /forum/forum/uploads/profile/1-profileimg.jpg

    Obviously, NodeBB is attempting to access the /forum/forum/ path defined during install, but I'm lost as to where I could edit that to resolve the problem.

    I'm a complete newbie to Node, but have no problem getting my hands dirty. 👍

    1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by
    #2

    Nodebb forum, config.json should do it. Might be an entry called uploads.

    1 Reply Last reply
    1
  • Danny McWilliamsD Offline
    Danny McWilliamsD Offline
    Danny McWilliams
    wrote on last edited by
    #3

    That's the one - wasn't an entry there, and added

    "upload_path": "/public/uploads",

    I saw this elsewhere on the forum, and couldn't get it to work. Probably made a typo or something, but tried again and it works fine. Thanks @a_5mith 🙂

    1 Reply Last reply
    0
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by
    #4

    That's the one, I was on my iPad, so couldn't elaborate much more at the time. Good to see you got it sorted though. 👍

    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