remove new from fname, doh!
This commit is contained in:
@@ -150,7 +150,7 @@ def add_refimg():
|
|||||||
if not person:
|
if not person:
|
||||||
raise Exception("could not find person to add reference image too!")
|
raise Exception("could not find person to add reference image too!")
|
||||||
f=request.files['refimg_file']
|
f=request.files['refimg_file']
|
||||||
refimg = Refimg( fname="new"+f.filename )
|
refimg = Refimg( fname=f.filename )
|
||||||
try:
|
try:
|
||||||
# save the actual uploaded image to reference_images/
|
# save the actual uploaded image to reference_images/
|
||||||
fname=secure_filename(f.filename)
|
fname=secure_filename(f.filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user