1/27/2024 0 Comments ANVIL downloading![]() ![]() However, both attempts were also unsuccessful. I Tried the requests approach as well as using dropbox api method in downloading files, by creating a function inside anvil server. New = anvil.BlobMedia('application/octet-stream',my_media_obj2.get_bytes(),name='new_name.file') I also trierd to convert the url to Blobmedia: my_media_obj2=anvil.URLMedia('url') My_media_obj2=anvil.URLMedia(‘url generated from dropbox where file is located’) For this particular case, I tried the following code: But, when I try to convert the URL to media object, I receive an error saying can’t connect to dropbox. My data is hosted in virtual drive (dropbox) and I managed to retrieve the link for the hosted files. However, I tried the suggested solutions from previous posts and I haven’t managed to make them work for me. I am facing some issues with downloading file from URL, which might seem as repeatable question and trivial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |