mdgio / iMap

Maryland iMAP applications
10 stars 24 forks source link

Data Interoperability dijit #4

Closed jsomerville closed 11 years ago

jsomerville commented 11 years ago

Description: Attempting to load the same zipped shapefile multiple times does not prompt the upload operation.

Steps to reproduce:

  1. Click Data button
  2. Click Browse button
  3. Choose a zip file
  4. Wait for operation to complete
  5. Click Browse button
  6. Choose the same zip file
  7. Upload operation does not occur

Browsers: All

Potential fix: The event to prompt the upload is triggered by the line: "uploadForm.onchange = lang.hitch(this, this._listening);". It is triggered when the file path changes. Since the same file path is attempted the 2nd time, no "change" event occurs. Could clear this value after an upload operation (and handle the empty string case in the handler).