Forge.ajax files



I was wonder if there was any extended documentation on the forge.ajax for files. When I attempt to send this over I don’t see the header info for file, or I should say when it gets to the server and I try and access say the form or argument of file it does not seem to be there so I was curious if there was an example or maybe what the file attribute is sent over as?


Files are uploladed using the standard form encoding by default. (i.e.

You can also do a raw upload where the request body contains the data for the file:

  type: 'POST',
  url: '',
  fileUploadMethod: "raw",
  success: function(data) {
    alert('Uploaded image');

Also see:

…and lots of examples here:


Ok, I got this working now…