# IotApi.FilesApi

All URIs are relative to *http://localhost/iotapi/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**filesFilenamePost**](FilesApi.md#filesFilenamePost) | **POST** /files/{filename} | 文件上传


<a name="filesFilenamePost"></a>
# **filesFilenamePost**
> filesFilenamePost(filename)

文件上传

To upload a file to Parse, send a POST request to the files URL, postfixed with the name of the file. The request must contain the Content-Type header associated with the file. Keep in mind that files are limited to 10 megabytes. Here’s a simple example that’ll create a file named hello.txt containing a string.

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.FilesApi();

var filename = "filename_example"; // String | 要上载的文件的文件名。


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.filesFilenamePost(filename, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **filename** | **String**| 要上载的文件的文件名。 | 

### Return type

null (empty response body)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

