Ionic 7 : How to Pick and Open images , pdf and video files in capacitor project

Поделиться
HTML-код
  • Опубликовано: 18 дек 2024

Комментарии • 16

  • @kuntalbhatt
    @kuntalbhatt 10 месяцев назад +1

    Thanks for this. Can u tell me how we can i open a pdf file from api. Thanks

  • @raedal-akash1926
    @raedal-akash1926 11 месяцев назад +1

    Hi and thank you for the great video. Just wondering if this plugins works with iOS!
    I'm getting an error that reads as follow using iOS mobile (ERROR {"code":"UNIMPLEMENTED"})
    please help

    • @techbinomial
      @techbinomial  11 месяцев назад

      Thanks. Please refer the documentation at github.com/capawesome-team/capacitor-plugins/tree/main/packages/file-opener
      They mentions it for IOS too. As I don't have IOS Could not demonstrate or resolve

  • @vikasjerripothula
    @vikasjerripothula 10 месяцев назад

    Hi, can I have this same plugin in ionic react project

  • @exsitewebsolution6803
    @exsitewebsolution6803 Год назад +1

    hi madam, Can this plugin be used in a PWA?

    • @techbinomial
      @techbinomial  Год назад

      It works for picking images on web page. But for video and pdf if try to open with file-opener it gives msg not implemented on web.
      for full web implementation check for other available plugins

    • @exsitewebsolution6803
      @exsitewebsolution6803 Год назад

      ​@@techbinomial Thank you for your reply, Can you guide me with any plugins that works for pdf and videos for PWA. Looking forward to your future videos

    • @techbinomial
      @techbinomial  Год назад +1

      Check if capacitorjs.com/docs/apis/filesystem works for pwa

  • @mahmoudabdelazeam991
    @mahmoudabdelazeam991 Год назад +1

    All support ❤

  • @nasimmaoui7417
    @nasimmaoui7417 10 месяцев назад

    if I want to present a pdf locally
    ​pdf , i have problem in the path

  • @haridassramasamy3017
    @haridassramasamy3017 Год назад

    hi how to download base64, mine type and file name in ionic 7 capacitor

    • @techbinomial
      @techbinomial  Год назад +1

      please check for capacitor-community
      /http plugin
      It provides download file method
      const downloadFile = async () => {
      const options = {
      url: 'example.com/path/to/download.pdf',
      filePath: 'document.pdf',
      fileDirectory: Directory.Downloads,
      // Optional
      method: 'GET',
      };
      // Writes to local filesystem
      const response: HttpDownloadFileResult = await Http.downloadFile(options);
      // Then read the file
      if (response.path) {
      const read = await Filesystem.readFile({
      path: 'download.pdf',
      directory: Directory.Downloads,
      });
      }
      };
      github.com/capacitor-community/http

    • @haridassramasamy3017
      @haridassramasamy3017 Год назад

      thank you. It is working fine @@techbinomial ❤

  • @johnsondja252
    @johnsondja252 9 месяцев назад

    Please share ur code in github link

    • @techbinomial
      @techbinomial  9 месяцев назад

      Have you subscribed the channel?

  • @EmilyAngel-i2j
    @EmilyAngel-i2j 6 месяцев назад

    ni sirve