uploading

ASP.NET Image uploading with Resizing

北慕城南 提交于 2019-11-27 06:53:40
I have an aspx page which will upload images to server harddisk from client pc But now i need to change my program in such a way that it would allow me to resize the image while uploading. Does anyone has any idea on this ? I couldnt not find such properties/methods with Input file server control Any one there to guide me ? 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 {

reduce image size while uploading using the following PHP code used to upload image

≡放荡痞女 提交于 2019-11-27 01:42:54
问题 Am trying to upload image to server using the following code Following are done with the given code below Upload file renaming What i need is i need to reduce image size with the following code Here is the code $file_name = $HTTP_POST_FILES['ufile']['name']; $random_digit = md5(rand() * time()); $new_file_name = $random_digit . $file_name; $path = "upload/" . $new_file_name; if ($ufile != none) { if (copy($HTTP_POST_FILES['ufile']['tmp_name'], $path)) { echo "Successful<BR/>"; echo "File Name

multer callbacks not working ?

萝らか妹 提交于 2019-11-26 21:22:13
问题 Anyone knows why the "rename" function (and all other multer callbacks) are not working? var express = require('express'); var multer = require('multer'); var app = express(); app.use(multer({ dest: 'uploads/', rename: function (fieldname, filename) { return new Date().getTime(); }, onFileUploadStart: function (file) { console.log(file.name + ' is starting ...'); }, onFileUploadComplete: function (file, req, res) { console.log(file.name + ' uploading is ended ...'); console.log("File name : "

Upload max size in PHP?

拜拜、爱过 提交于 2019-11-26 14:41:37
Is it possible for the upload of ~100 MB files using PHP? If so, what changes need to occur in the configuration file ( php.ini )? Sri 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 In your php.ini adjust the value of: file_uploads = On upload_max_filesize = 100M //needs to be in {x}M format And allow larger post size: post_max_size = 100M To allow for larger uploads with PHP you must change a

Increase file upload size limit in iis6

懵懂的女人 提交于 2019-11-26 13:45:36
问题 Is there any other place besides the metabase.xml file where the file upload size can be modified? I am currently running a staging server with IIS6 and it is setup to allow uploading of files up to 20mb. This works perfectly fine. I have a new production server where I am trying to setup this same available size limit. So I edited the metabase.xml file and set it to 20971520. Then I restarted IIS and that didn't work. So I then restarted the entire server, that also didn't work. I can upload