Revert "filePath Error with ajax files"

This reverts commit 2041dcb1f4fba43c4199b9f9b7e198180bf43789.
Revert "Related to filePath fix"

This reverts commit 0b192c96fe1f8fdcd6332ba11cb6f3687eebb7e4.