Results 1 to 3 of 3
  1. #1
    Join Date
    May 2011
    Posts
    3

    Upload API error

    I get a 400 Bad Request error when trying to post to clients/upload

    I have included the timestamp, version, deploy-token and file but when i reach this part of code:

    Code:
     
    public bool TryGetFormData<T>(string name, out T value)
    {
        string stringValue;
    
        if (!_formData.TryGetValue(name, out stringValue))
        {
            value = default(T);
            return false;
        }
    
        try
        {
            value = (T)Convert.ChangeType(stringValue, typeof(T));
            return true;
        }
        catch
        {
            value = default(T);
            return false;
        }
    
    }

    It tells me that _formData is empty.

  2. #2
    Join Date
    May 2011
    Posts
    3
    No-one? xD

  3. #3
    Join Date
    May 2011
    Posts
    3
    Ok so as it turns out i was sending the timestamp and version in the headers instead of in the form data... So many hours wasted xD

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •