exception when attaching an image to a location #8077
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.1.1
Python version
3.8
Steps to Reproduce
Expected Behavior
An image should have been uploaded and viewable from the location view
Observed Behavior
Server Error
There was a problem with your request. Please contact an administrator.
A server error occurred instead. The complete exception is provided below:
<class 'Exception'>
Unexpected type of parent object for ImageAttachment
Python version: 3.8.10
NetBox version: 3.1.1
Note that the file is successfully uploaded to the media directory (/opt/netbox/netbox/media/image-attachments) despite the exception.
Note that any image of any size triggers exception.
Note that exception does not occur if image is uploaded to a site, rack or device type
Note that the exception occurs if image is uploaded to a location, circuit or power panel
The text was updated successfully, but these errors were encountered: