سلام عليكم ورحمة الله وبركاته
حاليا اواجه مشكلة عويصة سببت لي اكتئاب في python وهي طريقة رفع الملفات والتعديل عليها ثم حفظها ثم عرضها للمستخدم
في PHP هناك المتغير $_FILES الذي يمكن العمل به لكن في python ماذا يوجد ؟
استخدم حاليا www.web2py.com
وهذا هو الكود
default.py
import os, shutil
def index():
if request.vars.file:
session.file = request.vars.file
redirect(URL('upload'))
return dict()
def upload():
with open(session.file) as file:
shutil.copy2(file,'e:\p')+ صفحة html
<div id="file-uploader">
<form name="upload" action="" method="post">
<input name="file" type="file" size="50"/>
<input type="submit" name="upload">
</form>
</div>
اتمنى ان اجد مساعدة ضرورية لاني فعلا اصابني اكتئاب جربت كل الحلول لي 3 ايام
شكرا مسبقا