diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3
index 6b5976fd..e3a41f14 100644
Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ
diff --git a/osinaweb/osinacore/add/__pycache__/views.cpython-310.pyc b/osinaweb/osinacore/add/__pycache__/views.cpython-310.pyc
index bff5e65a..e11796c9 100644
Binary files a/osinaweb/osinacore/add/__pycache__/views.cpython-310.pyc and b/osinaweb/osinacore/add/__pycache__/views.cpython-310.pyc differ
diff --git a/osinaweb/osinacore/add/views.py b/osinaweb/osinacore/add/views.py
index c3f07d27..f3b927c2 100644
--- a/osinaweb/osinacore/add/views.py
+++ b/osinaweb/osinacore/add/views.py
@@ -677,15 +677,11 @@ def add_ticket(request, customer_id):
file_paths = request.POST.getlist('filePath')
for file_path in file_paths:
- if os.path.exists(file_path):
- with open(file_path, 'rb') as f:
- ticket_attachment = TicketAttachment(
- ticket=ticket,
- file_path=file_path
- )
- ticket_attachment.save()
- else:
- print("Error: File does not exist at the provided path:", file_path)
+ ticket_attachment = TicketAttachment(
+ ticket=ticket,
+ file_path=file_path
+ )
+ ticket_attachment.save()
return redirect('ticketdetails', ticket_number=ticket.ticket_number)
diff --git a/osinaweb/static/images/uploaded_ticket_files/1669023419225.jpeg b/osinaweb/static/images/uploaded_ticket_files/1669023419225.jpeg
new file mode 100644
index 00000000..cae3b9f9
Binary files /dev/null and b/osinaweb/static/images/uploaded_ticket_files/1669023419225.jpeg differ
diff --git a/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM.jpeg b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM.jpeg
new file mode 100644
index 00000000..f25463b7
Binary files /dev/null and b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM.jpeg differ
diff --git a/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_1.jpeg b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_1.jpeg
new file mode 100644
index 00000000..f25463b7
Binary files /dev/null and b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_1.jpeg differ
diff --git a/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_2.jpeg b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_2.jpeg
new file mode 100644
index 00000000..f25463b7
Binary files /dev/null and b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_2.jpeg differ
diff --git a/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_3.jpeg b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_3.jpeg
new file mode 100644
index 00000000..f25463b7
Binary files /dev/null and b/osinaweb/static/images/uploaded_ticket_files/WhatsApp Image 2024-05-22 at 5.04.08 PM_3.jpeg differ
diff --git a/osinaweb/static/js/uploader-bar.js b/osinaweb/static/js/uploader-bar.js
index e52c824a..1b8a1df0 100644
--- a/osinaweb/static/js/uploader-bar.js
+++ b/osinaweb/static/js/uploader-bar.js
@@ -54,7 +54,7 @@ class FileUpload {
console.log('File uploaded to:', res.existingPath);
// Add the uploaded file path as an option in the select tag
- var option = '';
+ var option = '';
$('#filePathInput').append(option);
}
});