Bugs with uploading

I keep getting an error that the file I’m trying to upload does not
exist. I have verified that it does exist in the directory the
application is trying to access. For some reason the app segfaults when
I try to upload with the upload button but when the method is called
from the link button it works.