Skip to content

Commit

Permalink
Support ftp urls in upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TalLevAmi committed Mar 26, 2015
1 parent ed42025 commit c2b40dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudinary/uploader.py
Expand Up @@ -186,7 +186,7 @@ def call_api(action, params, **options):
file = options["file"]
if not isinstance(file, string_types):
datagen, headers = multipart_encode({'file': file})
elif not re.match(r'^https?:|^s3:|^data:[^;]*;base64,([a-zA-Z0-9\/+\n=]+)$', file):
elif not re.match(r'^ftp:|https?:|^s3:|^data:[^;]*;base64,([a-zA-Z0-9\/+\n=]+)$', file):
file_io = open(file, "rb")
datagen, headers = multipart_encode({'file': file_io})
else:
Expand Down

0 comments on commit c2b40dd

Please sign in to comment.