mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* Implement unzip function * Implement FileSize method * Implement path rewriting for bulk import * Small improvements * Add ImportSettings to config * Implement ListImports API endpoint * Enable uploading import files * Implement import process job * Add missing license headers * Address reviews * Make path sanitization a bit smarter * Clean path before calculating Dir * [MM-30008] Add mmctl support for file imports (#16301) * Add mmctl support for import files * Improve test * Remove unnecessary handlers * Use th.TestForSystemAdminAndLocal * Make nouser id a constant
11 lines
394 B
Go
11 lines
394 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package api4
|
|
|
|
func (api *API) InitUploadLocal() {
|
|
api.BaseRoutes.Uploads.Handle("", api.ApiLocal(createUpload)).Methods("POST")
|
|
api.BaseRoutes.Upload.Handle("", api.ApiLocal(getUpload)).Methods("GET")
|
|
api.BaseRoutes.Upload.Handle("", api.ApiLocal(uploadData)).Methods("POST")
|
|
}
|