enctype="multipart/form-data" Option form

Post Reply
User avatar
Fred
Legend Bludit
Posts: 303
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Sat Mar 17, 2018 3:38 pm

Hi Bludit Team.
I'm workin on a gallery plugin, but i need this feature for release plugin :)
I'm propose this change in admin/theme/default/init.php

Code: Select all

	public static function formOpen($args)
	{
		$class = empty($args['class']) ? '' : ' '.$args['class'];
		$id = empty($args['id']) ? '' : 'id="'.$args['id'].'"';
		$enctype = empty($args['enctype']) ? '' : ' enctype="multipart/form-data"';

		$html = '<form class="uk-form'.$class.'" '.$id . $enctype.' method="post" action="" autocomplete="off">';
		echo $html;
	}
$enctype is added.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Edi
Site Admin
Posts: 1199
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Sat Mar 17, 2018 6:36 pm

I added this as request to Github. It has the id 666. :twisted:

https://github.com/bludit/bludit/issues/666
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
User avatar
Fred
Legend Bludit
Posts: 303
Joined: Wed Jun 24, 2015 2:14 pm
Contact:

Tue Mar 20, 2018 7:38 pm

Thank i try this.

But is it possible to use the Image of bludit function in a plugin, to take advantage of the sending and the selection of images already available in a content. ?

Code: Select all

		// --- BLUDIT COVER IMAGE ---
		HTML::bluditCoverImage();	
		
		// --- BLUDIT QUICK IMAGES ---
		HTML::bluditQuickImages();
	
		// --- BLUDIT IMAGES V8 ---
		HTML::bluditImagesV8();
	
		// --- BLUDIT MENU V8 ---
		HTML::bluditMenuV8();
If I use it, I have a large layout defect of the sending area, which mobilizes the whole page and therefore does not give access to the other fields of my form.

Thank you.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
Post Reply