Creating custom file dialog for bulk photo upload - php

Is it possible to customize the "Browse UI window" which always open when we upload photos / files? I want to acheive two things:
In the bottom it always says "All Files". I want to lock that to only .jpg, .jpeg, .png so only those files types can be selected for upload. Secondly extent that box so when the upload is complete the preview opens on right of it of the uploaded photo.
The few people I asked said it is not possible to customize that window because it is part of the OS. So my question is can we create a custom browse window using ajax, jQuery, etc to upload photo from the user's PC? The window must support cross OS support. Or any PHP plugins for this?
To do mass uploads, on Facebook/Flickr they make us install an ActiveX component first. Is there any other way to allow users to do mass uploads without having to install ActiveX component? Straight from the OS, or using AJAX jQuery?
If not then, are there any exiting open source plugin for this that will work with PHP? Or what other options are there so I can allow users to upload their photos in bulk?
Thanks.

You can't change the browser default.
However, you can use Flash: http://www.swfupload.org/

I've been using a ExtJS a lot lately and theres an UX from one of the core members that does just that without having to install plugins and AFAIK it has a wide range of supported browsers (all the mayor ones at least).
Check the example here: http://www.aariadne.com/uploadform/
I has very small footprint but you'll have to use the ExtJS library in other to use it.

Related

PHP Media Manager like WordPress Media Uploader?

I simply love the ease at which Wordpress makes the uploading and the management of the photos and media so effortless.
I wanted to implement something like the WordPress Media Uploader into my NON-WORDPRESS PHP site. The problem is I really havent been able to find a good one till now.
Few of the features that I am looking for :
File uploader in it just like WP with the file upload progress.
Does not use Flash for uploading. This is really important.
Drag and Drop as well, maybe?
File manager which shows all the files that are uploaded as well.
Something possibly free? ( Le me getting greedy now :P )
I have found out the the media manager uses Plupload for its uploading if I am not mistaken.
And even the MoxieManager seems like a good manager. However, it is not free.
Is there an alternative? Or I would have to make my own from scratch?
Please guide me.
I would say to check out the Responsive Filemanager.
http://responsivefilemanager.com

Make the media uploader accept flash files

I am currently working with WordPress on a project and I need to allow the WordPress Media-Uploader.
I need to allow the upload of flash files since everytime I attempt to upload a flash file i get the following error: Sorry, this file type is not permitted for security reasons.
I tried to find within the doc but I couldnt find a place where it tell me how to allow flash files.
Could anyone point me in the right direction?
This is by design. To allow this you'll need to either change the core or install a plugin such as http://wordpress.org/plugins/mime-types-extended/.
There are other plugins here: http://wordpress.org/plugins/search.php?q=mime
Edit:
According to this tutorial, you can infact define additional mimetypes easily.

JavaScript and CSS Editor in joomla

As we see in Joomla 2.5 if we click on template then we saw lit of CSS. I want to generate exact list of JS(Javascript) files along with that. If we click on Javascript i am able to edit it.
Now, second question how i can create up loader for Joomla Admin Panel. My clien want to upload CSS and JS files of his own. I checked out few link and extensions but not able to understand. any help on above please
I had check ed following link for uploading but not able to understand how to implement
http://docs.joomla.org/Creating_a_file_uploader_in_your_component
Thanks,
Manpreet
The CSS and JS editor is only available in some templates. Also it is able to edit the JS and CSS files that are embedded through your template. You can view these files in your index.php
(/templates/your_templates/index.php )
That link you have posted is about creating a component (nothing to do with templates), also is impossible to upload CSS and JS files through the media uploader , first of all the files are uploaded by default in /images/ folder, secondly I am not quite sure how is it possible to work.
BUT there might be a tricky solution for your problem. Each component, module or plugin is able to embed its own styles and Javascript files. Take a look at your template's source code, there must be a line like this
<jdoc:include type="head" />
This mentions to the joomla core that there will be embedded the additional files in the head of the HTML document.
My approach would be presented four generic steps
a) Create a folder where your client can upload several CSS and JS files
b) Create a plugin in order to do the uploaded stuff
c) In your plugin implementation add some functionality for editing the files (you can use any jquery's editor plugin to display the code in a popup or even joomla default editor
d)allow user to choose which files wants to embed
As I can imagine it will be a very hard task to accomplish since you have to face lots of problems (file uploading restrictions, file rights etc) but it's not impossible to do
Good luck with your project
Having answered your previous question regarding basically the same thing, I will say again, you can download the file uploader component which I provided you a link for or just download a File Management extension from JED.

WordPress or PHP script to pick an image file from a plugin folder

I'm creating a WordPress plugin that allows a user to select one of several image files that are distributed with it. Is there a simple technique for allowing the user to view the files in a filebrowser-like interface and pick one? I want it to look as similar as possible to picking a file in the normal file upload dialog.
I ended up adapting the code from this filebrowser that utilizes scandir. It has a nice simple interface and the code is simple enough to incorporate into a plugin.

Simple PHP image gallery with file upload

I am looking for a really simple PHP image gallery system that allows file uploads and provides easy integration into any existing PHP script. I only found full galleries with database backend and templating systems for integration and the too simple ones that just take a folder with (FTP uploaded) images and show it but don't provide the possibilities for file uploads.
I'm quite close on writing my own, cause I didn't find anything yet, but I first wanted to ask if you have any suggestions.
Ok so I have a very early version of it on Github, it is under development (and not really nice yet, I just needed the admin interface up and running) but contributions and comments are welcome.

Categories