GithubHelp home page GithubHelp logo

insomnia-plugin-base64-file's Introduction

Insomnia Base64 File Encoder

This is a plugin for Insomnia that allows encoding a file with base64.

Instalation

Install the insomnia-plugin-base64-file plugin from Preferences > Plugins.

insomnia-plugin-base64-file's People

Contributors

joetyson avatar

Stargazers

 avatar  avatar

insomnia-plugin-base64-file's Issues

Add an option to include MIME

Dear @joetyson

Thank for the plugin, it is very useful.
I guess you should add an option to include or not the FILE HEADER.

The file header is a declaration of the file type and format usually needed for those WEB API that need to save\post elaborate the file in somehow.

E.g.: Now i must do this within insomnia

{
  "image": "data:image/jpeg;base64,{% base64file 'file path', false %}",
  "pdf": "data:application/pdf;base64,{% base64file 'file path', false %}"
}

So it will be very cool to include or not the string data:image/jpeg;base64, maybe automatically recognized by choosen file.

For reference here: MDN MIME types

White screen when file loading

To Reproduce
Add file with size more than 1M, and see white screen on program.

Error in devtools:
(node:15612) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Screenshot_1

Expected behavior
It should open

App information:
Insomnia Version: 2020.3.3
Shell: 3.1.13
Node: 10.2.0
V8: 6.6.346.32
OS: windows 10 pro 2004

Installation fails

Installation as per instructions fails due to missing license field

Error: Error invoking remote method 'installPlugin': Error: Yarn error {"type":"warning","data":"package.json: No license field"}

Reload dialog show an error "missing file"

Dear @joetyson

I'm using your useful plugin and it works perfectly.
There is boring bug in case, after configured properly the dialog, i want to re-open it and change "QUOTE" flag.

The dialog seems to loose the file path and, specially in windows, seems to loose the path separator ""; so i must browse again for the file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.