Attempting to upload a file

Comments

2 comments

  • Andrew Fields

    I figured it out.

    When PodioFile::upload() is called, "$filepath" must be the FULLPATH TO THE FILENAME, not just the "directory" the file is in.

    Of course, this sort of error could be *easily* avoided if on the "documentation" page here: https://developers.podio.com/doc/files/upload-file-1004361

    an EXAMPLE was presented showing actual "code" instead of this:

      PodioFile::upload( $file_path, $file_name );

    which is basically useless (I can get that much information by looking at PodioFile.php, which is how I solved the problem when I saw what it was doing...)

     

     

    0
    Comment actions Permalink
  • Jacquelyn May

    Glad you were able to get it working! In the future, API questions should be directed to Stack Overflow:

    http://stackoverflow.com/questions/tagged/podio

    This will be the best place to get help from other developers. 

    /Jacquelyn - Podio

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk