Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
catalog.genesys-pgr.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Catalog
catalog.genesys-pgr.org
Commits
a850800d
Commit
a850800d
authored
Nov 14, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: File upload fails when metadata not provided
parent
66776152
Pipeline
#7629
passed with stages
in 4 minutes and 31 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/service/RepositoryService.ts
src/service/RepositoryService.ts
+3
-1
No files found.
src/service/RepositoryService.ts
View file @
a850800d
...
...
@@ -278,7 +278,9 @@ class FileRepositoryService {
const
data
=
new
FormData
();
data
.
append
(
'
file
'
,
file
);
// data.append('metadata', JSON.stringify(metadata));
data
.
append
(
'
metadata
'
,
new
Blob
([
JSON
.
stringify
(
metadata
)
],
{
type
:
'
application/json
'
}));
if
(
metadata
)
{
data
.
append
(
'
metadata
'
,
new
Blob
([
JSON
.
stringify
(
metadata
)
],
{
type
:
'
application/json
'
}));
}
const
content
=
{
data
};
return
axiosBackend
.
request
({
...
...
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