Get the filePath in callback to work