Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio_mebibou
Commits
af5c85a2
Commit
af5c85a2
authored
Mar 28, 2017
by
Tristan Cavelier
Committed by
Romain Courteaud
Mar 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5storage: putAttachment returns xhr.responseType blob
/reviewed-on
nexedi/jio!50
parent
d0a43f62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
src/jio.storage/erp5storage.js
src/jio.storage/erp5storage.js
+1
-0
test/jio.storage/erp5storage.tests.js
test/jio.storage/erp5storage.tests.js
+6
-3
No files found.
src/jio.storage/erp5storage.js
View file @
af5c85a2
...
...
@@ -437,6 +437,7 @@
"
type
"
:
"
POST
"
,
"
url
"
:
name
,
"
data
"
:
data
,
"
dataType
"
:
"
blob
"
,
"
xhrFields
"
:
{
withCredentials
:
true
}
...
...
test/jio.storage/erp5storage.tests.js
View file @
af5c85a2
...
...
@@ -490,7 +490,7 @@
},
""
]);
stop
();
expect
(
1
1
);
expect
(
1
2
);
this
.
jio
.
putAttachment
(
id
,
...
...
@@ -502,6 +502,7 @@
equal
(
server
.
requests
[
0
].
method
,
"
POST
"
);
equal
(
server
.
requests
[
0
].
url
,
submit_url
);
equal
(
server
.
requests
[
0
].
status
,
204
);
equal
(
server
.
requests
[
0
].
responseType
,
"
blob
"
);
ok
(
server
.
requests
[
0
].
requestBody
instanceof
FormData
);
ok
(
context
.
spy
.
calledTwice
,
"
FormData.append count
"
+
...
...
@@ -536,7 +537,7 @@
},
""
]);
stop
();
expect
(
1
1
);
expect
(
1
2
);
this
.
jio
.
putAttachment
(
id
,
...
...
@@ -548,6 +549,7 @@
equal
(
server
.
requests
[
0
].
method
,
"
POST
"
);
equal
(
server
.
requests
[
0
].
url
,
submit_url
);
equal
(
server
.
requests
[
0
].
status
,
204
);
equal
(
server
.
requests
[
0
].
responseType
,
"
blob
"
);
ok
(
server
.
requests
[
0
].
requestBody
instanceof
FormData
);
ok
(
context
.
spy
.
calledTwice
,
"
FormData.append count
"
+
...
...
@@ -586,7 +588,7 @@
},
""
]);
stop
();
expect
(
1
2
);
expect
(
1
3
);
this
.
jio
.
putAttachment
(
id
,
...
...
@@ -598,6 +600,7 @@
equal
(
server
.
requests
[
0
].
method
,
"
POST
"
);
equal
(
server
.
requests
[
0
].
url
,
submit_url
);
equal
(
server
.
requests
[
0
].
status
,
204
);
equal
(
server
.
requests
[
0
].
responseType
,
"
blob
"
);
ok
(
server
.
requests
[
0
].
requestBody
instanceof
FormData
);
ok
(
context
.
spy
.
calledOnce
,
"
FormData.append count
"
+
...
...
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