upload file with xhr?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2014 11:42 AM
Hello
I try to use a dropzone.js plugin to upload some file …. I use POST method and in my console I have:
OPTIONS https://......alfresco/service… 405 (Method Not Allowed)
OPTIONS https://......alfresco/service… Invalid HTTP status code 405
XMLHttpRequest cannot load https://...../alfresco/service/….. Invalid HTTP status code 405
But when I try a simple <form> input=file method=post action=alfresco/service… in a html page without plugin,it works fine,
How can I fix that ? it only caused by dropzone.js…
(I tried to put another action=url with other server it works fine too…just with alfresco service I have error 405 and method=OPTIONS ….)
I try to use a dropzone.js plugin to upload some file …. I use POST method and in my console I have:
OPTIONS https://......alfresco/service… 405 (Method Not Allowed)
OPTIONS https://......alfresco/service… Invalid HTTP status code 405
XMLHttpRequest cannot load https://...../alfresco/service/….. Invalid HTTP status code 405
But when I try a simple <form> input=file method=post action=alfresco/service… in a html page without plugin,it works fine,
How can I fix that ? it only caused by dropzone.js…
(I tried to put another action=url with other server it works fine too…just with alfresco service I have error 405 and method=OPTIONS ….)
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2014 01:13 PM
No OPTIONS is not allowed.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2014 06:32 PM
In my plugin I put POST method and it become OPTIONS alone.(in console error 405 not allowed…)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2014 10:35 PM
What you are experiencing is the correct behavior due to CORS. You need to enable CORS for the resouces you want to give access to.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2014 04:47 AM
How can I give access to this plugin from alfresco? I'm thinking the CORS is already enabled…. because when I try a simple html form upload It works fine and I havn't some cross-origin problem that way

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2014 08:04 AM
up
how can I enabled & allow XMLHttpRequest in cors to upload file ^^ someone knows

