Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

ParseFile creation in Ribbit App

I'm having trouble in the Ribbit app with my ParseFile.

I go through the steps to create the ParseFile, and get no errors. However, when I attempt to retrieve my ParseFile, the returned value for the file is "null".

I can see my 'file' getting added in a data column on Parse, but the type is listed as String.

I am wondering if this is part of the issue; retrieving the file returns null because Parse can't actually find a file to send back. However, this means there is something wrong with my ParseFile creation, but I just can't seem to find it.

Anyone else see this?

I haven't encountered that issue specifically, but if you have code you'd like me to look at I could help debug the issue.

Jason, thank you so much for the offer! I just was re-reading my code, and found that when adding the Parse File, I wrote this:

message.put(ParseConstants.KEY_FILE, fileName);

Instead of this:

message.put(ParseConstants.KEY_FILE, file);

D'oh! No wonder it was uploading a string instead of the file! :)

1 Answer

Doh! That'll do it. No problem, have fun!