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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024

ความคิดเห็น • 16

  • @kuntalbhatt
    @kuntalbhatt 7 หลายเดือนก่อน +1

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

  • @mahmoudabdelazeam991
    @mahmoudabdelazeam991 ปีที่แล้ว +1

    All support ❤

  • @raedal-akash1926
    @raedal-akash1926 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน

      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

  • @nasimmaoui7417
    @nasimmaoui7417 7 หลายเดือนก่อน

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

  • @vikasjerripothula
    @vikasjerripothula 7 หลายเดือนก่อน

    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

  • @haridassramasamy3017
    @haridassramasamy3017 9 หลายเดือนก่อน

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

    • @techbinomial
      @techbinomial  9 หลายเดือนก่อน +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 9 หลายเดือนก่อน

      thank you. It is working fine @@techbinomial ❤

  • @johnsondja252
    @johnsondja252 6 หลายเดือนก่อน

    Please share ur code in github link

    • @techbinomial
      @techbinomial  6 หลายเดือนก่อน

      Have you subscribed the channel?

  • @EmilyAngel-i2j
    @EmilyAngel-i2j 3 หลายเดือนก่อน

    ni sirve