AnsweredAssumed Answered

Upload Excel for GP service using Javascript API?

Question asked by sealjack on Dec 12, 2012
Latest reply on Dec 16, 2012 by sealjack
Hello, I have a GP service take a spreadsheet as input to convert to feature class. The GP service has upload capability turned on.

I want to build web page using Javascript API to allow user upload spreadsheet for the GP service. So the I figure out there're two steps: Step1. use REST API to upload the file to server. The server will return a page has the itemID of the uploaded file. Step 2. Use the itemID to build a DataFile object as the input of the GP service. My question is, How can I in Javascript get the itemID?