Save attachment from specific webpage

I would like to know which function need to use if I want to save attachment from specific webpage … this specific webpage is something like customer input form that allow customer to attach some documents.