Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
Services
Transcoder
Commits
056c7d3c
Commit
056c7d3c
authored
Aug 16, 2018
by
A. Koch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set correct mimetype for thumb files
parent
a973b0c1
Pipeline
#1049
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/lib/workers/convert.js
src/lib/workers/convert.js
+3
-3
No files found.
src/lib/workers/convert.js
View file @
056c7d3c
...
...
@@ -73,9 +73,9 @@ const convertJob = async function (job) {
const
minioClient
=
new
Minio
.
Client
(
config
.
assets
.
client
)
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
destFile
,
destination
,
{
'
Content-Type
'
:
'
video/mp4
'
})
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
thumbFile
,
thumbPath
,
{
'
Content-Type
'
:
'
image/jpg
'
})
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
thumbFileSmall
,
thumbPathSmall
,
{
'
Content-Type
'
:
'
image/jpg
'
})
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
thumbFileMedium
,
thumbPathMedium
,
{
'
Content-Type
'
:
'
image/jpg
'
})
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
thumbFile
,
thumbPath
,
{
'
Content-Type
'
:
'
image/jp
e
g
'
})
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
thumbFileSmall
,
thumbPathSmall
,
{
'
Content-Type
'
:
'
image/jp
e
g
'
})
await
minioClient
.
fPutObject
(
config
.
assets
.
bucket
,
thumbFileMedium
,
thumbPathMedium
,
{
'
Content-Type
'
:
'
image/jp
e
g
'
})
await
fs
.
remove
(
tmpDir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment