-
Notifications
You must be signed in to change notification settings - Fork 0
/
File_Classifications.txt
28 lines (26 loc) · 1.17 KB
/
File_Classifications.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
file_size = # obtain the file size in megabytes
file_type = # obtain the file type (doc, txt, pdf, ppt, images, video)
video_formats = ['3gp', 'avi', 'flv', 'mkv', 'mov', 'mp4', 'mpeg', 'mpg', 'wmv']
image_formats = ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff']
if file_size <= 2 and file_type in ['docx', 'txt', 'csv', 'xml']:
# Upload the file to Google Drive
# Your Google Drive upload code here
print("File uploaded to Google Drive successfully!")
elif file_type.lower() in video_formats:
# Upload the file to pCloud
# Your pCloud upload code here
print("File uploaded to pCloud successfully!")
elif file_size > 2 and file type_type in ['txt', 'docx', 'csv', 'xml']:
# Upload the file to Dropbox
# Your Dropbox upload code here
print("File uploaded to Dropbox successfully!")
elif file_type in image_formats:
# Upload the image to Amazon S3
# Your Amazon S3 upload code here
print("Image uploaded to Amazon S3 successfully!")
elif file_type in ['pdf', 'pptx']:
# Upload the file to Box.com
# Your Box.com upload code here
print("File uploaded to Box.com successfully!")
else:
print("File does not meet the criteria for uploading.")