dsql-admin/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html
Benjamin Toby 6364f6a312 Updates
2024-12-15 12:57:19 +01:00

1 line
8.1 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/40a7197d287e4ac0.css" as="style"/><link rel="stylesheet" href="/_next/static/css/40a7197d287e4ac0.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-5381863dc66a9c32.js" defer=""></script><script src="/_next/static/chunks/framework-898697981b1ca118.js" defer=""></script><script src="/_next/static/chunks/main-36f93e1764e6ea94.js" defer=""></script><script src="/_next/static/chunks/pages/_app-946b7f00d529ca86.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-d986893c235e6d5b.js" defer=""></script><script src="/_next/static/_A6S2Hel7pfBafC20yE1z/_buildManifest.js" defer=""></script><script src="/_next/static/_A6S2Hel7pfBafC20yE1z/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Upload Media","slug":"upload-media","description":"\u003cp\u003eDatasquirel comes baked with an integrated static file directory. This makes it easy to upload public and private files and access it from anywhere.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eMedia management is a bigger problem than it sounds at first. Images tend to get out of hand when adding them to web projects: your images need to be well optimized for fast loading, easily accessible, and maintain clarity so that your website doesn't look like it's from the 80's. Datasquirel does this all for you in a few clicks.\u003c/p\u003e\u003ch2\u003eAdding Media\u003c/h2\u003e\u003cp\u003eEvery datasquirel account is created with two directories for media storage: one is public, and the other is private. To start adding media, follow these steps:\u003c/p\u003e\u003ch3\u003e1. Navigate to \"\u003cstrong\u003eMedia\" \u003c/strong\u003efrom your dashboard\u003c/h3\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/media-page-with-folder.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eIf you created a database already, with an image for this database, your media folder will be pre-populated with a folder named after your database (\u003ccode style=\"display:inline\"\u003etest\u003c/code\u003e  in this case), and it will contain the image you uploaded when you created the database. \u003c/p\u003e\u003ch3\u003e2. Select Media files\u003c/h3\u003e\u003cp\u003eTo add a new media, click on \u003cstrong\u003eAdd Media\u003c/strong\u003e button. This will open a modal for you to choose which type of media you want to add.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/chose-media-type-to-upload.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eThere are two options available at this time: \u003cstrong\u003eImages\u003c/strong\u003e, and \u003cstrong\u003eFiles\u003c/strong\u003e. Image uploads only allow the image types listed in the description, the same applies with files. Click on the desired type and select the files you want to upload. You can upload multiple files at the same time.\u003c/p\u003e\u003ch3\u003e3. Edit selected files and upload files\u003c/h3\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/select-images-to-upload.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eThe next modal gives you the option to further change attributes of the images before uploading. These attributes include the \u003cstrong\u003eimage name\u003c/strong\u003e, and \u003cstrong\u003eprivacy\u003c/strong\u003e. Private images can only be accessed via out API using your \u003cstrong\u003eRead Only \u003c/strong\u003eor \u003cstrong\u003eFull Access\u003c/strong\u003e API keys.\u003c/p\u003e\u003cp\u003eAfter you're set, click on \"Upload Media\". This process uploads selected media to their respective directories. But that's not all, each media is compressed automatically, using a max width of \u003cstrong\u003e1800px\u003c/strong\u003e, and each media comes with an automatically generated thumbnail. So For each image you upload, you have two images. The thumbnail image contains a suffix \u003ccode style=\"display:inline\"\u003e_thumbnail\u003c/code\u003e added to the original image's name.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/media-with-added-images.png\" width=\"800\" height=\"599\" /\u003e\u003c/p\u003e\u003cp\u003eAfter images have been uploaded, you can now copy the link for *public images and share anywhere, you can also copy the thumbnail link. NOTE, you cannot share private images publicly, private images don't have a public URL, they can only be accessed through OUR API with valid credentials.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eAdding Folders\u003c/h2\u003e\u003cp\u003eAdding folders help to better organize media. We currently have 2 depths of folder structure. So you can create a folder, and a sub-folder. To create a folder, simply navigate to your \u003cstrong\u003eMedia \u003c/strong\u003eadmin page and click \"\u003cstrong\u003eAdd Folder\u003c/strong\u003e\".\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-folder-screen.png\" width=\"800\" height=\"376\" /\u003e\u003c/p\u003e\u003cp\u003eAdd a folder name and click \"\u003cstrong\u003eAdd New Folder\u003c/strong\u003e\". Your new folder is now ready to go. Click on the new folder and you can upload images and files to that folder.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"gui-reference","sub-page":"upload-media"},"buildId":"_A6S2Hel7pfBafC20yE1z","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html>