IZWebFileManager

Advanced ASP.NET File Manager
Welcome to IZWebFileManager Sign in | Join | Help
in Search
The forum is moved to http://groups.google.com/group/izwebfilemanager
If you have any question, please post there. Thanks!

Image Resize on Upload

Last post 01-13-2010, 12:11 PM by igor. 5 replies.
Sort Posts: Previous Next
  •  01-11-2010, 10:16 PM 444

    Image Resize on Upload

    I have search through the code but can't find a place to add a resizer. I use IZ as a Gallery backend and would like to resize my Images.
  •  01-12-2010, 1:28 PM 446 in reply to 444

    Re: Image Resize on Upload

    Do you want resize image on upload?
  •  01-12-2010, 7:44 PM 448 in reply to 446

    Re: Image Resize on Upload

    Yes Please, I have some C# code that works like a charm is you need it.
  •  01-13-2010, 10:10 AM 451 in reply to 448

    Re: Image Resize on Upload

    Handle FileUploaded event.

        protected void FileManager1_FileUploaded(object sender, UploadFileEventArgs e)
        {
            string path = e.UploadedFile.PhysicalPath;
           
           // resize file if neeed
        }

  •  01-13-2010, 11:47 AM 452 in reply to 451

    Re: Image Resize on Upload

    Thanks igor,
    Yes i tried it. The file is already uploaded by then i would like to resize the file in the upload stream if possible. One more thing is there any chance you could limit file types being uploaded
  •  01-13-2010, 12:11 PM 454 in reply to 452

    Re: Image Resize on Upload

    there is another way to handle upload, and I think it is better for your scenario - implement your own upload bar.

    1. disable built in upload bar by setting AllowUpload="false"

    2. add near to file manger FileUpload controll. you may place more then one and in such way support multiple file upload.

    3. on submit refer to CurrentDirectory property of file manager for figuring out where to place resized files.
View as RSS news feed in XML
www.IZWebFileManager.com
izwebfilemanager@gmail.com