Added upload path starter
This commit is contained in:
@@ -18,8 +18,6 @@ class FileUploadService(BaseService):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def process_file_upload(upload_type: str, file, member_uid):
|
def process_file_upload(upload_type: str, file, member_uid):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
file_uid = "I GOT HERE "
|
file_uid = "I GOT HERE "
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -30,17 +28,6 @@ class FileUploadService(BaseService):
|
|||||||
|
|
||||||
final_folder = f"W{member_data.id:010d}"
|
final_folder = f"W{member_data.id:010d}"
|
||||||
|
|
||||||
# personal_data = {
|
|
||||||
# "firstname": member_data.firstname,
|
|
||||||
# "lastname": member_data.lastname,
|
|
||||||
# "account_name": member_data.account_name,
|
|
||||||
# "email": member_data.email,
|
|
||||||
# "phone": member_data.phone,
|
|
||||||
# "full_address": member_data.full_address,
|
|
||||||
# "picture": 'https://media.mermsemr.com/media/show/merms-profile',
|
|
||||||
# "country": member_data.country,
|
|
||||||
# }
|
|
||||||
|
|
||||||
save_path = FileUploadService.UPLOAD_FOLDER + "/WEBSITE"
|
save_path = FileUploadService.UPLOAD_FOLDER + "/WEBSITE"
|
||||||
if not os.path.isdir(save_path):
|
if not os.path.isdir(save_path):
|
||||||
os.makedirs(save_path)
|
os.makedirs(save_path)
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Explain the fle upload design here
|
||||||
Reference in New Issue
Block a user