Integrated data upload.

asked 12 years ago

ooglyboogly gravatar image

updated 12 years ago

I'd like to have something like the single cell server has when you click the 'advanced' button. I tried simply copying the html from the save/upload data page, but I get the error:

Error uploading file (missing url arg).

I can't seem to find the necessary html/javascript on the single cell server.

What I tried to use, except with <'s and \n\'s deleted:

html('div>

form method="POST" action="do_upload_data"
      name="upload" enctype="multipart/form-data">
    div>
        label for="file">Browse your computer to select a file to upload:</label>
        input size="50" type="file" name="file" />
    </div>
    div>
        label for="name">What do you want to call it? (if different than the original name)</label>
        input size="50" type="text" name="name" />
    </div>
    button type="submit">Upload or Create Data File</button>
</form>

')

Preview: (hide)