File Upload in redux REACT
up vote
0
down vote
favorite
I am trying to upload an image through redux-form along with the other form data..But I receive an error
"Error: ETIMEOUT: An Upstream ('NOOP_driver_image') timed out waiting
for file(s). No files were sent after waiting 10000ms."
I am using sails at the back-end. the server side code works fine when I upload the image through POSTMAN...
redux-form
add a comment |
up vote
0
down vote
favorite
I am trying to upload an image through redux-form along with the other form data..But I receive an error
"Error: ETIMEOUT: An Upstream ('NOOP_driver_image') timed out waiting
for file(s). No files were sent after waiting 10000ms."
I am using sails at the back-end. the server side code works fine when I upload the image through POSTMAN...
redux-form
i am requesting using saga const requestURL = '/api/v1/en/driver/add'; const headers = { 'Content-Type': 'multipart/form-data', contentType: false }; try { // Call our request helper (see 'utils/request') const { data } = yield call(axios.post, requestURL, headers, res.data); yield put(actions.driverSuccess(data)); } catch ({ response }) { yield put(actions.driverFailed()); } }
– Bilal Amin
Nov 19 at 11:02
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to upload an image through redux-form along with the other form data..But I receive an error
"Error: ETIMEOUT: An Upstream ('NOOP_driver_image') timed out waiting
for file(s). No files were sent after waiting 10000ms."
I am using sails at the back-end. the server side code works fine when I upload the image through POSTMAN...
redux-form
I am trying to upload an image through redux-form along with the other form data..But I receive an error
"Error: ETIMEOUT: An Upstream ('NOOP_driver_image') timed out waiting
for file(s). No files were sent after waiting 10000ms."
I am using sails at the back-end. the server side code works fine when I upload the image through POSTMAN...
redux-form
redux-form
edited Nov 19 at 11:31
Amin Mozhgani
5911420
5911420
asked Nov 19 at 11:01
Bilal Amin
11
11
i am requesting using saga const requestURL = '/api/v1/en/driver/add'; const headers = { 'Content-Type': 'multipart/form-data', contentType: false }; try { // Call our request helper (see 'utils/request') const { data } = yield call(axios.post, requestURL, headers, res.data); yield put(actions.driverSuccess(data)); } catch ({ response }) { yield put(actions.driverFailed()); } }
– Bilal Amin
Nov 19 at 11:02
add a comment |
i am requesting using saga const requestURL = '/api/v1/en/driver/add'; const headers = { 'Content-Type': 'multipart/form-data', contentType: false }; try { // Call our request helper (see 'utils/request') const { data } = yield call(axios.post, requestURL, headers, res.data); yield put(actions.driverSuccess(data)); } catch ({ response }) { yield put(actions.driverFailed()); } }
– Bilal Amin
Nov 19 at 11:02
i am requesting using saga const requestURL = '/api/v1/en/driver/add'; const headers = { 'Content-Type': 'multipart/form-data', contentType: false }; try { // Call our request helper (see 'utils/request') const { data } = yield call(axios.post, requestURL, headers, res.data); yield put(actions.driverSuccess(data)); } catch ({ response }) { yield put(actions.driverFailed()); } }
– Bilal Amin
Nov 19 at 11:02
i am requesting using saga const requestURL = '/api/v1/en/driver/add'; const headers = { 'Content-Type': 'multipart/form-data', contentType: false }; try { // Call our request helper (see 'utils/request') const { data } = yield call(axios.post, requestURL, headers, res.data); yield put(actions.driverSuccess(data)); } catch ({ response }) { yield put(actions.driverFailed()); } }
– Bilal Amin
Nov 19 at 11:02
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373198%2ffile-upload-in-redux-react%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
i am requesting using saga const requestURL = '/api/v1/en/driver/add'; const headers = { 'Content-Type': 'multipart/form-data', contentType: false }; try { // Call our request helper (see 'utils/request') const { data } = yield call(axios.post, requestURL, headers, res.data); yield put(actions.driverSuccess(data)); } catch ({ response }) { yield put(actions.driverFailed()); } }
– Bilal Amin
Nov 19 at 11:02