$upload_success = Input::file('file')->move($destinationPath, $filename) $extension =$file->getClientOriginalExtension() $destinationPath = public_path().'/uploads/'.Sentry::getUser()->username.'/' With hundreds of adverts on used gear, our classifieds offer the perfect place to find great. $advert_id = Advert::orderby('id', 'desc')->first()->id Buy and sell used skydiving gear with our free classifieds. Here is the portion that manages upload in anycodings_laravel MediaController: public function uploadImages() Here is my code for managing dropzone: $('.dropzone-stuff').dropzone(", If you want some specific link to remove a file (instead of the built in addRemoveLinks config), you can simply insert elements in the template with the data-dz-remove attribute. #Dropzone classifieds how to#I don't anycodings_laravel want to split form on two pages but have no anycodings_laravel idea how to manipulate user to do what I anycodings_laravel need. The default options for Dropzone will look for those element and update the content for it. I have anycodings_laravel made two models with two tables in db one anycodings_laravel for adverts another for pics, relations are anycodings_laravel set properly media table has foreign key anycodings_laravel advert_id Dropzonejs used in form but URL anycodings_laravel for it pointing to function from anycodings_laravel MediaController the addition of adverts is anycodings_laravel managed by AdvertController Now the issue is anycodings_laravel in these two separate working places when I anycodings_laravel upload images I don't know advert_id value, anycodings_laravel but I cannot figure how to make users save anycodings_laravel advert first and THEN upload images. I have a laravel project which is anycodings_laravel classifieds site and every advert should anycodings_laravel have a few photos attached to it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |