fixed errors
This commit is contained in:
Binary file not shown.
@@ -322,7 +322,7 @@ def make_savepath(
|
||||
pfpath = pf[1] + "/"
|
||||
catpath = CATEGORIES[int(cat)] + "/"
|
||||
scpath = ""
|
||||
if int(cat) in SUBCAT_CATEGORIES_I:
|
||||
if int(cat) in SUBCAT_CATEGORIES_I and subcat != "":
|
||||
sc = get_subcatpath(subcat, int(cat), pf[0], lv[0])
|
||||
scpath = sc[1] + "/"
|
||||
savepath = UNIZEUG_PATH + lvpath + pfpath + catpath + scpath
|
||||
|
||||
@@ -317,8 +317,8 @@ async function uploadFile(formData) {
|
||||
console.log("upload OK " + responseJSON["filename"]);
|
||||
console.log(response);
|
||||
delete doc.pdf;
|
||||
delete doc;
|
||||
document.getElementById("fname").value = responseJSON.filename;
|
||||
//delete doc;
|
||||
document.getElementById("name").value = responseJSON.filename;
|
||||
doc = new PDFDocument(
|
||||
responseJSON.path,
|
||||
responseJSON.fid,
|
||||
|
||||
Reference in New Issue
Block a user