添加上传功能

车亮亮 9 years ago
parent 2cc260d098
commit 8c9c504930

@ -208,7 +208,7 @@ def fileupload(request):
if request.method == 'POST':
fname = ''
timestr = datetime.datetime.now().strftime('%Y/%m/%d')
basepath = os.path.join(r'image/', timestr)
basepath = os.path.join(r'/var/www/resource/image/', timestr)
if not os.path.exists(basepath):
os.makedirs(basepath)
fname = ''

Loading…
Cancel
Save