예제 #1
0
def handle_uploaded_media_file(file, file_type=None):
    """Handles an uploaded file and returns the path to the file object."""
    store_service = MediaStoreService(file=file, file_type=file_type)
    store_service.save()
    return store_service.storeFileName()
예제 #2
0
def handle_uploaded_media_file(file, file_type=None):
    """Handles an uploaded file and returns the path to the file object."""
    store_service = MediaStoreService(file=file, file_type=file_type)
    store_service.save()
    return store_service.storeFileName()