Hi. when you say 'your' server do you mean your local host on your computer? or do you mean an actual live hosting server? because I had issues with uploading certain files that were being resized and found out it wasnt the coding but the hosting. for example I think my hosting has a memory limit of 90MB - and for very large resolution images (even though under 2MB in files size they needed a lot of memory to perform the resizing. I was told to increase my server to around 256MB - but I use 1and1 shared hosting and was told by my hosting that they cannot do that for shared hosting, but only for manage hosting. some hosts, im sure can offer the ability to change memory size or even supply with a big size at the beginning.
chris