It is the upload speed of your internet connection that would be causing the slow down. Nothing you can do to speed it up in your code/server. Unless your server's connection is slow but that is unlikely.
What i am trying to understand is I have a website where i allow users to upload images. The images are loaded into a file on the server and i store all the required additional information on a mysql table. However the images can be anything up to 1mb. I feel the website is starting to slow in its performance i,e, when i view a page the images seem to take a little longer to appear. Just trying to understand surely at some point the server is processing display of these images does the RAM need to be bigger?
Are you resizing the images or doing any processing on them? If so, make sure that code runs when users upload images. That way the image gets processed once instead of getting processed at every request.
If the images aren't going through any PHP when being displayed then the server is just taking some time to process the requests or your internet connection speed isn't fast enough to download everything as quickly as you would like.
So the users pick an image from their desktop using a standard html form then when they submit the form there is php code that resizes the image then saves it down to a folder on my hosted webspace then a mysql table is updated with the relevant image detail like the file location etc. I have a 1Mb size restriction on the images and i've noticed that when i upload smaller images the time taken is pretty short. Any guidance on handling image sizes? I guess if users keep uploading 1Mb images my site is going to get slow in terms of displaying those images?