Comments (10)
It's been released in framework v0.4.1.
To get the update run: composer update vanilo/framework
Thanks again for the report + the suggestion.
from demo.
Do not know if this helps spatie/laravel-medialibrary#646
from demo.
Vanilo v0.4 was released yesterday. Please use a fresh new install and check if that works.
We've been testing it excessively in the last few weeks and haven't had this error, so it should work.
from demo.
I have installed the version 0.4 and there are two problems.
First when creating new product and attempting to upload a picture there is no button to submit the picture and the picture is not uploaded with the creation of the product.
Create form - No Submit
Edit form - Submit
Second problem is the one I have highlighted yesterday. When I am on product edit page and just click the green submit button to upload a picture it will throw exception.
from demo.
Hmm ok.., thanks for the report, I'll look into it shortly.
from demo.
I am just having a look around the 0.4 now and the upload of files when creating products works. It it just the edit exception.
from demo.
Do you mean that the only problem is when you submit Images on product edit form without files selected with the green arrow?
from demo.
Yes
from demo.
I have changed Vanilo\Framework\Http\Controllers\MediaController@store
to
public function store(Request $request)
{
if(!$request->has('images')){
flash()->error(__('No image supplied, image is required!'));
return redirect()->back();
}
// Laravel Black Magic
$model = app(concord()->short($request->get('forType')))->find($request->get('forId'));
$model->addMultipleMediaFromRequest(['images'])->each(function ($fileAdder) {
$fileAdder->toMediaCollection();
});
flash()->success(__('Images have been added successfully!'));
return redirect()->back();
}
and the exception is not triggered
from demo.
Ok, I'll add that validation to the framework
from demo.
Related Issues (20)
- No products in Seed? HOT 1
- Picture doesn't show at shop catalog or product page in admin HOT 2
- Tweaking settings on admin page HOT 17
- Adding file input field to settings page HOT 3
- Multi-language and multi-tenancy support? HOT 2
- getThumbnailUrl on cart page not returning the image. HOT 4
- Default front end theme HOT 3
- Your requirements could not be resolved to an installable set of packages."vanilo" HOT 2
- it seems that tables are missing. Product , taxonomies, settings HOT 3
- Error when guest purchase a product HOT 2
- Return value of Konekt\Concord\Proxies\EnumProxy::targetClass() must be of the type string, null returned HOT 5
- One product have multiple property values? HOT 1
- Trying to get in touch regarding a security issue HOT 1
- need rtl theme or arabic language HOT 1
- Installation - Demo Shop HOT 1
- Class "Konekt\AppShell\Providers\ModuleServiceProvider" not found HOT 3
- Master product demo HOT 7
- Not able to see shop main menu HOT 14
- How to implement new payment gateways HOT 1
- Order of registering modules appears to remove customers relationship from Address class.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo.