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.
Related
So, this might be a stupid question. Bear with me, I'm new to CMS usage :P
Anyways, I'm using Bolt CMS to create a very simple website. For it, I just need a simple contact form, which means my server needs to be able to send out an email. I want to use PHP for this.
Now, how exactly should I handle this with Bolt CMS? The default configuration does not allow .php files to be uploaded, however I could easily change this in the main configuration, to allow for its type. My first guess was to try and upload it to either the theme folder, or the file folder for the theme. However, when I try to upload .php files they don't even show up in the folders I upload them to, even though it says the file was uploaded successfully. However, I'm unsure this would even be the best way to handle PHP scripts with Bolt CMS.
Anyone got any inputs to this? :)
Thank you!
For security reasons, Bolt will not allow you to run PHP scripts from inside Bolt. If this is something you need to have, there are two options:
Make it standalone. Create a contact.php on the server that handles it, and link to that.
The better solution would be to use an extension for that. Simpleforms (easy to implement, with a fair share of options), BoltForms (more options and allows for more control over the fields as well as uploads) or Simple Contact Form (very bare bones, but might be what you need).
I'm new with Symfony and MediaBundle, can't find tutorial how to upload files to server using MediaBundle, only display. Video would be perfect. I'm using latest Symfony 2.5. I need simple file upload, without any Sonata Media Bundle, or I must use Sonata for upload?
Only official example I found:
http://symfony.com/doc/current/cmf/bundles/media/introduction.html#uploading-files
and no working code examples.
For uploading, I use the OneupUploaderBundle and use jQuery for my front end. Uploading can be involved because you have to handle different interfaces on users and then also have a method to save files on your server. This bundle allows you to use different front ends for the design and has sever nice events for handling different types of uploads.
I use the included oneup_uploader.pre_upload event to review the file that will be uploaded and use oneup_uploader.post_upload to have the file's name stored in a related entity so I can easily access it from a controller/service. It has some decent examples but post any questions if you are stuck. One of the most useful features for me is the custom logic for uploads.
I'm currently working on a wordpress website, of which I'm trying to overwrite content-extensions.php with a new version. On uploading this it appears to work, the file transfer is successful. However, there is no change in the browser even after refreshing and clearing the cache. I've also ensured that there are no plugin's caching within wordpress, and file permissions are what they should be within FileZilla.
Here's the odd bit.
If I go into theme editor, and locate content-extensions.php I can see the changes that I've made in the source code. For whatever reason they're just not appearing in the browser.
I'd be really grateful if someone could point me in the right direction for this one, as I haven't a pickle.
Many thanks.
Are you working with an extension or with a theme based function?
If it's an extension, remember to activate it, i often forget that, i upload code, see it in the extension manager but forget to activate it.
If it's in the theme, are you sure you are using the right theme and not the basic one?
I know this doesn't shed any light on why it's actually happening but I've had that before and just deleted the file and uploaded the new one rather than trying to overwrite it.
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.
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.