quoi que j'avais dit
This commit is contained in:
parent
aeb93e8a55
commit
38de2f040d
|
@ -432,13 +432,14 @@ def upload_file():
|
||||||
if file.filename == '':
|
if file.filename == '':
|
||||||
print('end of files')
|
print('end of files')
|
||||||
return redirect(url_for('settings_get'))
|
return redirect(url_for('settings_get'))
|
||||||
|
|
||||||
elif file and allowed_file(file.filename):
|
elif file and allowed_file(file.filename):
|
||||||
filename = secure_filename(file.filename)
|
filename = secure_filename(file.filename)
|
||||||
print(os.path.join('/app/MsRewards-Reborn/user_data/', filename))
|
print(os.path.join('/app/MsRewards-Reborn/user_data/', filename))
|
||||||
file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename))
|
file.save(os.path.join('/app/MsRewards-Reborn/user_data/', filename))
|
||||||
|
|
||||||
i += 1
|
i += 1
|
||||||
|
print(i)
|
||||||
print(f'file{i}' in request.files)
|
print(f'file{i}' in request.files)
|
||||||
print("requete bizarre")
|
print("requete bizarre")
|
||||||
return redirect(url_for('settings_get'))
|
return redirect(url_for('settings_get'))
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function addline(ligne){
|
function addline(ligne){
|
||||||
document.getElementById("table").insertRow(ligne+1).insertCell(0).innerHTML = '<input type="file" id="file' + ligne + 1 + '" name="file' + ligne + 1 + '" onchange="addline(' + ligne + 1 + ')">'
|
document.getElementById("table").insertRow(int(ligne) + 1).insertCell(0).innerHTML = '<input type="file" id="file' + int(ligne) + 1 + '" name="file' + int(ligne) + 1 + '" onchange="addline(' + int(ligne) + 1 + ')">'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue