Refactor user file attachments URL computation to handle local sites.

Review Request #9470 — Created Jan. 5, 2018 and submitted

David Trowbridge
Review Board
release-3.0.x
a92fc5e...
reviewboard

The user file attachments resource URL used for uploading images via
drag-and-drop wasn't correct when a local site was present, because we
were computing it inside the JavaScript. This change makes it so we
include the URL as part of the UserSession model, which makes it work
correctly.

  • Verified that I could now DnD images into a review request within a
    local site.
  • Ran js-tests.
Christian Hammond
  1. Ship It!
  2. 
      
David Trowbridge
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (16d0695)
Loading...