[Midas] midas.upload.generatetoken error

Michael Grauer michael.grauer at kitware.com
Wed Jul 11 11:23:50 EDT 2012


Hi Mona,

Can you look in the logs of the Midas server after you make this call?
 Does that tell you anything?

Thanks,
Mike

On Tue, Jul 10, 2012 at 9:09 PM, Mona Wong <mona at sdsc.edu> wrote:

>
> I'm trying to make the following web api call:
>
> https://
> <our_midas_server>/api/json?method=midas.upload.generatetoken&useSession&itemid=675&filename=rkd2_merged_phase001.nii.axml
>
> and I got back:
>
> {"stat":"fail","message":"Error param.","code":0}
>
> I think I'm making the call right according to the doc:
>
>    - midas.upload.generatetoken ?
>    Generate a unique upload token
>    *Parameters*
>       - *token* - Authentication token
>    - *itemid* - The id of the parent item to upload into
>    - *filename* - The filename of the bitstream you will upload
>    - *checksum* - (Optional) The md5 checksum of the file to be uploaded
>    *Return* - An upload token that can be used to upload a file. If
>    checksum is passed and the token returned is blank, the server already has
>    this file and there is no need to upload.
>
>  What am I doing wrong?
>
> Mona
>
>
> *********************************************
>     Mona Wong
>     Web & iPad Application Developer
>     San Diego Supercomputer Center
>
>     Believing we are in control is an
>     illusion that brings suffering.
> *********************************************
>
>
>
>
>
>
> _______________________________________________
> Midas mailing list
> Midas at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/midas
>
>


-- 
Thanks,
Michael Grauer
R & D Engineer
Kitware, Inc.
919 969 6990 x322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120711/fc0841e3/attachment.html>


More information about the Midas mailing list