+
Skip to content

feat: export VineMultipartFile class #4943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

adamcikado
Copy link
Contributor

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

This change adds export of VineMultipartFile class from @adonisjs/core/vine path, so it can be easily extended using macro for example.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@thetutlage
Copy link
Member

Hello @adamcikado

Can you please share what new rules you are planning to add to the file schema? Because, it will be nice to also document them and not keep it as a hidden feature.

@adamcikado
Copy link
Contributor Author

@thetutlage I'd like to add mime type rule and and a rule that checks whether uploaded file is not corrupted, because sometimes it happens that the uploaded file has 0 zero, even thought the original file was ok.

@thetutlage
Copy link
Member

Cool! Can you please open another PR for the docs showcasing how to a simple rule and use it?

@thetutlage thetutlage merged commit 0a214fa into adonisjs:6.x Jun 9, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载