fbl773 / point-b_ank

Forked from PCubed by the marvelous 371 team 4
Apache License 2.0
0 stars 0 forks source link

Projectile Point Photos do not appear #12

Closed fbl773 closed 2 months ago

fbl773 commented 2 months ago

~bug

Observed on develop running platform firefox (remote) for feature upload new point: When creating a point on a non-local server, photos are uploaded, but cannot be retrieved. They should show up for the point they were assigned to.

Recreation Steps

  1. Create a new Point
  2. Add a Photo to it
  3. Close Point
  4. Open Point
  5. OBSERVE --> No photo shows up
fbl773 commented 2 months ago

Well 1. The request is being sent to the wrong place: https://github.com/fbl773/point-b_ank/blob/66d5c2fdf1aeaa28657fe84b59ec198fc588e05e/frontend/src/components/Projectile.jsx#L168

  1. Our NGINX config is likely not handling the request properly. So that is probably what is going on there. It would depend on how the photo is being sent back to the user... It appears to simply access its location on the server...
fbl773 commented 2 months ago

A super lazy way to handle this would be to create a network drive on the nginx machine mapping to the drive on the API machine that houses the photos... but that won't work in the "out-of-the-box" solution.

fbl773 commented 2 months ago

Having said that, most of the hosting configuration does not work "out of the box" and that is how it should be. You can run it locally on your personal machine with ease, otherwise you've got to know how to set things up such that it is accessible from LAN/WAN. Though, I think out of the box LAN config isn't a big ask and we currently do not have that :(

fbl773 commented 2 months ago

Moved to issue #18