Is there a way to limit the amount of relationship items being returned and filter them by created time, to lets say return only 7 days of worth of items?
relationship one to many limit, filter.
You can't limit them at the moment
@Steven i've noticed interesting thing, if i upload an jpg/png, and request the transformed version, i get a webp just fine, but if i upload webp and request transformed version, i don't get a proper image back. html
<FileDropzone name="files" bind:files on:change={onChangeHandler}>
<svelte:fragment slot="lead"><i class="fa-solid fa-file-arrow-up text-4xl"></i></svelte:fragment>
<svelte:fragment slot="message">Drag & Drop your image here</svelte:fragment>
<svelte:fragment slot="meta">{image_name}</svelte:fragment>
</FileDropzone>
{#if image !== ""}
<img src="{image}" alt="test">
{/if} ```js
uploadArticleImage: async (file: any) => {
const upload_image = await storage.createFile('images', ID.unique(), file);
return storage.getFilePreview(
'images',
upload_image.$id,
900, 500,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
'webp'
)
.toString();
},```
this doesn't seem related to your original post. it would be best to create a separate post
[CLOSED] relationship one to many limit, filter.
Recommended threads
- Getting CORS error when accessing websit...
When accessing my website I'm getting: (index):1 Access to font at 'https://assets.appwrite.io/fonts/inter/Inter-Regular.woff2' from origin 'https://mvp-site-ra...
- How to ByPass the Hostname restriction f...
Hello, Im hosting my React application in a stateless server environment, where the IP of the client keeps changing for the server. How do I bypass the hostname...
- Email templates partially broken in non-...
Good afternoon! Non-english locales are missing some variables introduced in recent releases. That makes the sent emails look bad. The issue has been raised a...