Categories | Question details Back To List | ||
output xml is printing <data>Operation error</data> when contentType is set as multipart/form-data Hi, In dhtmlxscheduler ,i added a file upload element in the event window using custom detail form. scheduler.form_blocks["my_editor"]= { render:function(sns) { return "<div class='dhx_cal_ltext' style='height:60px;'><form method='post' >Upload File <input type='file'> <br/> </form> </div>"; } The contentType is set as this.xmlDoc.setRequestHeader("Content-type","multipart/form-data"); in dhtmlxscheduler.js In the parse_request() method of BaseConnector class request.getParameter("ids") is giving null value. The output xml is printing <data>Operation error</data>. The value from the event is not getting in the server side. Can u plz explain where is the problem? How to save an event with a file upload element? How can i get the all formfield values and file upload object value in the BaseConnector class and save to a location using java code? regards rencin. Answer posted by Alex (support) on Dec 17, 2009 05:10 Hello, there is no way to save files using scheduler built-in methods. You can try submit a form to save files. But scheduler doesn't provide any ready solution to process the data at the server-side.
|