MENU
      inputFile
        • PDF

        inputFile

        • PDF

        Article summary

        Available in Classic and VPC

        Send files to analyze with file filter.

        Request

        This section describes the request format. The method and URI are as follows:

        MethodURI
        POST/inputFile

        Request headers

        The following describes the headers.

        FieldRequiredDescription
        Content-TypeRequiredRequest and response data format
      • multipart/form-data
      • For information about the headers common to all File Safer APIs, see Common File Safer API headers.

        Request parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        fileFileRequiredTarget file
        archivePasswordStringConditionalCompressed file password
        • Enter if the target file is a password-protected compressed file

        Request example

        The request example is as follows:

        curl --location --request POST 'https://filesafer.apigw.ntruss.com/filefilter/v1/inputFile' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-apigw-api-key: {API Gateway API Key}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --header 'Accept: application/json' \
        --header 'Content-Type: multipart/form-data' \
        --form 'file=@"{File Name}"'
        Shell

        Response

        This section describes the response format.

        Response body

        The response body includes the following data:

        FieldTypeRequiredDescription
        returnCodeStringRequiredResponse code
        returnMessageStringRequiredResponse message

        Response status codes

        For information about the HTTP status codes common to all File Safer APIs, see File Safer response status codes.

        Response example

        The response example is as follows:

        {
            "returnCode": "0",
            "returnMessage": "success"
        }
        JSON

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.