Add more prints
This commit is contained in:
parent
1c97aadd2f
commit
acf1ac1641
@ -90,16 +90,20 @@ def get_body_from_form_data(
|
|||||||
for part in parts:
|
for part in parts:
|
||||||
if data is None:
|
if data is None:
|
||||||
for header in part.headers:
|
for header in part.headers:
|
||||||
|
print("YO CHECKING ", header.value)
|
||||||
if b'name="upload_file"' in header.value:
|
if b'name="upload_file"' in header.value:
|
||||||
headers["key"] = "upload_file"
|
headers["key"] = "upload_file"
|
||||||
data = part.data
|
data = part.data
|
||||||
|
print("YO SET UPLOAD FILE")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if b'name="file"' in header.value:
|
if b'name="file"' in header.value:
|
||||||
data = part.data
|
data = part.data
|
||||||
|
print("YO SETTING FILE")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
headers["file"] = part.data.decode("utf-8")
|
headers["file"] = part.data.decode("utf-8")
|
||||||
|
print("YO COPING OUT")
|
||||||
break
|
break
|
||||||
|
|
||||||
# name="x-amz-algorithm"', b'Content-Disposition':b'form-data; name="x-amz-credential"', b'Content-Disposition':b'form-data; name="x-amz-date"', b'Content-Disposition':b'form-data; name="policy"', b'Content-Disposition':b'form-data; name="x-amz-signature"', b'Content-Disposition':b'form-data; name="file"; filename="/run/user/1001/tmpi1gf2n_j/test_local_file.txt"'],
|
# name="x-amz-algorithm"', b'Content-Disposition':b'form-data; name="x-amz-credential"', b'Content-Disposition':b'form-data; name="x-amz-date"', b'Content-Disposition':b'form-data; name="policy"', b'Content-Disposition':b'form-data; name="x-amz-signature"', b'Content-Disposition':b'form-data; name="file"; filename="/run/user/1001/tmpi1gf2n_j/test_local_file.txt"'],
|
||||||
|
Loading…
Reference in New Issue
Block a user