I am trying to configure ExpressJS to accept an incoming XML file for parsing. I have read that bodyParser has deprecated support for xml and I simply can't figure out how to make my application accept an incoming xml and store it.
Since the external server requires my site to be live to send the xml file, I have been building using local testing techniques. Namely, I created an upload form that will successfully do what I want it to do, upload an xml file and store it targeting a url.
When I push these changes to the server and target the same URL with the external server, the xml file gets lost in transit and is never stored.
Am I wrong in assuming that this POST coming from another server would automatically get placed into the faxes directory given this line?
In my Express Configuration
app.use(express.bodyParser( { keepExtensions: true, uploadDir: path.join(__dirname, '/faxes')}));
No comments:
Post a Comment