Build the path with g_build_filename(). Also use g_get_home_dir() and g_file_test().
Attach a file by drag & drop or click to upload