Saving the flagfiles

Saving the flagfiles in a specific folder in the upload dir