User login

Agaric wants Drupal to upload files with any or no extension and stop being a pain about it

Searched words: 
drupal allow upload of files with no extension

Agaric is not alone: Allow any files to be uploaded or make "Permitted upload file extensions" a required field

The workaround of adding the file name to the "extension" list didn't work for us though for a file called "Capfile" (with no extension, of course).

Adding a .txt extension to the file for now. But may I say: annoying!

Resolution

Comments

I can see how this could be

I can see how this could be a security concern in some cases, but letting people upload files to begin with is a security risk, considering that malicious code can easily be saved within pictures....

anyway, it should be a role thing, if you are an admin, you should be able to upload whatever you want. I mean, c'mon if you have the ability to change themes and delete users, I think the system should trust you enough to let you upload whatever you want.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.