Resolved. It doesn't seem to work if the file name contains "@", so I changed the name and it worked.