ASP.NET Image uploading with Resizing

Once the file has been saved to the server you can use code like this to resize. This code will take care of length/width ratio on the resize. public static Bitmap CreateThumbnail(string lcFilename, int lnWidth, int lnHeight) { System.Drawing.Bitmap bmpOut = null; try { Bitmap loBMP = new Bitmap(lcFilename); ImageFormat loFormat = loBMP.RawFormat; decimal lnRatio; … Read more

Upload max size in PHP?

The following options are relevant: PHP: upload_max_filesize (in php.ini or .htaccess only, won’t work using ini_set()) PHP: post_max_size (ditto) PHP: max_input_time (ditto, thanks @Thorstein, forgot this one) and possibly Apache: LimitRequestBody