Can I set up an upload page, which can receive photos, video and zip packages containing photos and/or videos?

Asked

Viewed 29 times

0

I am like an application where the registered user has a page of uploads of images and videos and I wanted to know if there is how, in addition to receiving photos and videos by uploads, if I can receive zips packages with photos and videos, where, the application can take these packages out of the zip to be able to name and then allocate these files to the server. I’m using ASP.NET MVC 5, Razor and some features in Java.

1 answer

0

Yes. Using the same input file. Only change the way the file is treated on the server side depending on the file extension.

Save the file and manipulate using the System.IO reference.

Refer to a ZIP extract component as Dotnetzip 1.10.1 (Nuget Pack)

  using (ZipFile zip = ZipFile.Read(PathDoArquivo))
  {
    foreach (ZipEntry e in zip)
    {
      e.Extract();
    }
  }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.