Fix ajax uploader

still need to fix the database/filesystem link