Пример #1
0
    source_type: A valid source type (e.g. 'Portfolio Raw' or 'Assessed Raw')


Payload::

    The content of the file as a data stream.  Do not use multipart encoding.

Returns::

    {'success': True,
     'import_file_id': The ID of the newly-uploaded ImportFile
    }

"""
local_uploader.__name__ = 'local_uploader'


@api_endpoint
@ajax_request
@login_required
def get_upload_details(request):
    """
    Retrieves details about how to upload files to this instance.

    Returns::

        If S3 mode:
        {
         'upload_mode': 'S3',
         'upload_complete': A url to notify that upload is complete,
Пример #2
0
    source_type: A valid source type (e.g. 'Portfolio Raw' or 'Assessed Raw')


Payload::

    The content of the file as a data stream.  Do not use multipart encoding.

Returns::

    {'success': True,
     'import_file_id': The ID of the newly-uploaded ImportFile
    }

"""
local_uploader.__name__ = 'local_uploader'


@api_endpoint
@ajax_request
@login_required
def get_upload_details(request):
    """
    Retrieves details about how to upload files to this instance.

    Returns::

        If S3 mode:
        {
         'upload_mode': 'S3',
         'upload_complete': A url to notify that upload is complete,