I know that Iphone doesn’t allow file uploads via web on safari, so i want to test another method.
Is there any way i can as a user send an email with a photo as attachment to a specific email (lets say uploads@domain.com) and then let it automatically upload the photo to a webserver?
Yes, you either have incoming email piped directly into a script (e.g. with procmail) or you periodically (e.g. with cron) poll a mailbox (e.g. over IMAP) looking for new messages.
Then you just need to parse the mail, extract the image, and copy it to wherever you want to copy it to.
Make sure you have some kind of sensible authentication scheme in place though.