fixes bug #786 per_page_uploads: incorrect file path if page is inside some directory
Merge pull request #787 from akretion/fix-upload-path

fixes bug #786 per_page_uploads: incorrect file path if page is inside some directory