Flyspray - The bug killer!

  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category User Interface
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version 1.0-rc6
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Flyspray - The bug killer!
Opened by Simon Byholm - 14.02.2018
Last edited by peterdd - 16.02.2018

FS#2458 - Cannot add attachments after upgrade from rc1 to rc6

So we could add attachments before the upgrade, now we can’t. Not even me as Admin.

The attachments folder was kept unchanged during upgrade per the intructions.

Old attachments still exist and can be opened and have a delete checkbox.

Closed by  peterdd
16.02.2018 10:56
Reason for closing:  No reason
Project Manager
peterdd commented on 14.02.2018 17:02


Please add Screenshot(s).
All webbrowsers or only one specific affected?
Web server config changed? Which web server?

Simon Byholm commented on 15.02.2018 10:51

Here's the add new task view

Simon Byholm commented on 15.02.2018 10:54

And this is the comment with no attachment option

Simon Byholm commented on 15.02.2018 11:04

Running Firefox 58.0.2 (64-bit) on Windows 7
Same problem with Internet Explorer by the way

The server is Archlinux with apache

Server version: Apache/2.2.14 (Unix)
Server built: Nov 7 2009 12:15:30

Project Manager
peterdd commented on 15.02.2018 13:57

First, show if the markup exists (show source in webbrowser)

something like this:

	CKEDITOR.replace( 'detailed_desc', { entities: true, entities_latin: false, entities_processNumerical: false } );
      <p class="buttons">
                              <input type="hidden" name="action" value="newtask.newtask" />
          <input type="hidden" name="project_id" value="1" />
                    &nbsp;&nbsp;<input class="text" type="checkbox" id="notifyme" name="notifyme"
          value="1" checked="checked" />&nbsp;<label class="inline left" for="notifyme">Notify me whenever this task changes</label>
                <div id="uploadfilebox">
          <span style="display: none">            <input tabindex="5" class="file" type="file" size="55" name="userfile[]" />
              <a href="javascript://" tabindex="6" onclick="removeUploadField(this, 'uploadfilebox');">Remove</a><br />
              <input tabindex="5" class="file" type="file" size="55" name="userfile[]" />
                <a href="javascript://" tabindex="6" onclick="removeUploadField(this, 'uploadfilebox');">Remove</a><br />
        <button id="uploadfilebox_attachafile" tabindex="7" type="button" onclick="addUploadFields('uploadfilebox')">
          Attach a file (max. 8 MiB)
        <button id="uploadfilebox_attachanotherfile" tabindex="7" style="display: none" type="button" onclick="addUploadFields('uploadfilebox')">
           Attach another file (max. 8 MiB)

If not, the permission 'create_attachments' is not set right for the current user.

For a quick live test as admin, add

        echo '<pre>';
        echo '</pre>';


if ($user->perms('create_attachments')): ?>

in themes/CleanFS/templates/newtask.tpl

(around line 229 of newtask.tpl)

And how is your "create attachments" permission row looking?

See /index.php?do=pm&area=groups&project=1 for instance for project_id=1

There is also a possibility that uploads are not possible at all:

In this case the create_attachments the upload html markup is never shown.

What is the


This value is calculated here

Simon Byholm commented on 16.02.2018 08:52

So the markup is not there....

And I don't seem to have the create_attachment right, see attached log.

I'm in the admin group and my co-wroker in the developers group I can see that the create_attachment right is ticked, but he can't create and attachment, i.e. button etc not visible

I even tried removing the tick, save, adding the tick back and save and that does not help.

Simon Byholm commented on 16.02.2018 09:09

Seems max_file_size is 0... but it's not immediately clear how to change it. We had it at 2MB I think before upgrading.

Simon Byholm commented on 16.02.2018 09:14


file_uploads: On
memory_limit: 128M
post_max_size: 8M
upload_max_filesize: 2MB

Simon Byholm commented on 16.02.2018 09:48

Ok I found it myself now, the attachments folder was no longer writable....

And after some looking at the command history... seems I have copied the flyspray rc6 distro folder into the old rc1 folder, and there's an empty attachments folder in the disto, and that must have changed the writable attribute of the old attachments folder...

It would be great if the Admin Toolbox had an attachments tab with an on/off switch, a max size setting, and it would print out all the reasons why it can't set it to your desired value.

Simon Byholm commented on 16.02.2018 10:33

I added a new fetaure task FS#2459 for the settings in the admin toolbox, this task can be closed. Thanks for the help!


Available keyboard shortcuts


Task Details

Task Editing