big b oys
This commit is contained in:
@@ -74,8 +74,14 @@ def import_data():
|
||||
# Save uploaded file to temporary location
|
||||
temp_dir = tempfile.mkdtemp()
|
||||
temp_path = os.path.join(temp_dir, secure_filename(file.filename))
|
||||
|
||||
print(f"Saving uploaded file to: {temp_path}")
|
||||
file.save(temp_path)
|
||||
|
||||
# Verify file was saved
|
||||
file_size = os.path.getsize(temp_path)
|
||||
print(f"Saved file size: {file_size} bytes")
|
||||
|
||||
# Import from ZIP
|
||||
result = import_questions_from_zip(temp_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user