Importation of CSV File fails #5316

Closed
opened 2025-12-29 19:26:34 +01:00 by adam · 1 comment
Owner

Originally created by @DanSheps on GitHub (Sep 3, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.0.1

Python version

3.9

Steps to Reproduce

  1. Perform a CSV export from prefixes or create a CSV file for importation. Some data grooming may be required (prepared data: netbox_prefixes.csv)
  2. Go to IPAM > Prefixes > Import
  3. Select "CSV file"
  4. Choose the prepared CSV file
  5. Select import

Expected Behavior

Data should import successfully

Observed Behavior

If data textbox is left as default, page will reload

If data textbox was cleared, page will reload with error

If data textbox was populated with additional data, import will succeed with only the entered data (CSV file is ignored)

Related: #7139

Originally created by @DanSheps on GitHub (Sep 3, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.0.1 ### Python version 3.9 ### Steps to Reproduce 1. Perform a CSV export from prefixes or create a CSV file for importation. Some data grooming may be required (prepared data: [netbox_prefixes.csv](https://github.com/netbox-community/netbox/files/7107309/netbox_prefixes.csv)) 2. Go to IPAM > Prefixes > Import 3. Select "CSV file" 4. Choose the prepared CSV file 5. Select import ### Expected Behavior Data should import successfully ### Observed Behavior If data textbox is left as default, page will reload If data textbox was cleared, page will reload with error If data textbox was populated with additional data, import will succeed with only the entered data (CSV file is ignored) Related: #7139
adam added the type: bugstatus: accepted labels 2025-12-29 19:26:34 +01:00
adam closed this issue 2025-12-29 19:26:34 +01:00
Author
Owner

@jeremystretch commented on GitHub (Sep 3, 2021):

The root cause here was that enctype="multipart/form-data" was omitted from the form element. I also took the opportunity to clean up the form a bit.

@jeremystretch commented on GitHub (Sep 3, 2021): The root cause here was that `enctype="multipart/form-data"` was omitted from the form element. I also took the opportunity to clean up the form a bit.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5316