Just use the media type provided by the uploader.
This commit is contained in:
parent
c42e78fced
commit
4129a03239
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ class UploadsRoutes implements RouteHandler {
|
||||||
if($uploadInfo === null) {
|
if($uploadInfo === null) {
|
||||||
$uploadInfo = $uploadsData->createUpload(
|
$uploadInfo = $uploadsData->createUpload(
|
||||||
$appInfo, $userInfo, $request->getRemoteAddress(),
|
$appInfo, $userInfo, $request->getRemoteAddress(),
|
||||||
$fileName, mime_content_type($localFile),
|
$fileName, (string)$file->getSuggestedMediaType(),
|
||||||
$fileSize, $hash, $appInfo->bumpAmount, true
|
$fileSize, $hash, $appInfo->bumpAmount, true
|
||||||
);
|
);
|
||||||
$filePath = $this->uploadsCtx->getFileDataPath($uploadInfo);
|
$filePath = $this->uploadsCtx->getFileDataPath($uploadInfo);
|
||||||
|
|
Reference in a new issue