The newly-added ability for any user uploading a file to change the storage is extremely problematic for us. We do not want users changing the default storage specified in the field settings, that would let them mistakenly store sensitive documents publicly and potentially open the company to considerable liability.

The same applies to any other steps that allow the user to change defaults. We just want step 1 ;-)

Please provide a simple way to skip each step of the form after step 1. A permission per step would be ideal, but if that would result in too many permissions, a hook would be welcome.

Files: 
CommentFileSizeAuthor
#9 add-ability-to-skip-upload-wizard-steps-2001074-9.patch4.24 KBDevin Carlson
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]
#8 add-ability-to-skip-upload-wizard-steps-2001074-8.patch4.18 KBpc-wurm
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]
#5 skip_step_ui.png78.47 KBDevin Carlson
#5 add-ability-to-skip-upload-wizard-steps-2001074-5.patch4.18 KBDevin Carlson
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]

Comments

I think if this were permission-based you'd possibly need a separate permission per-filetype and per-step, which really would result in far too many permissions?

I can understand having the 'Destination' step (step 3) when adding a brand new file via file/add, but when adding a file via a field that already has that information defined, shouldn't there be a check for that in order to skip that step?

I am also looking for a way to skip 'Destination' step, which makes the file uploads very cumbersome and unnecessarily complicated for users. Even if there are no permissions or something to skip those steps, I would appreciate any hints about to hide/skip those site-wide.

Thanks in advance!

Status:Active» Needs review
StatusFileSize
new4.18 KB
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]
new78.47 KB

A patch to provide options for skipping each of the upload wizard steps. A description of what each step does and what happens if a certain step is skipped is included.

skip_step_ui.png

The default behaviour for skipping the file type selection step would be enhanced by #1920350: Provide a "catch all" default application file type.

Doesn't apply against most recent dev snapshot:

$ git apply -v add-ability-to-skip-upload-wizard-steps-2001074-5.patch
Checking patch file_entity.install...
Checking patch file_entity.module...
error: while searching for:
    '#weight' => -10,
    '#description' => t('Separate extensions with a space or comma and do not include the leading dot.'),
  );
}
/*
error: patch failed: file_entity.module:439
error: file_entity.module: patch does not apply
Checking patch file_entity.pages.inc...

Status:Needs review» Reviewed & tested by the community

I applied it against the last dev version and it work well for me

Status:Reviewed & tested by the community» Needs review
StatusFileSize
new4.18 KB
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]

Patch on #5 has a little typo on 'Skip scheme selection' checkbox. The corrected patch is attached.

By the way many thanks to Devin Carlson for the patch!

StatusFileSize
new4.24 KB
PASSED: [[SimpleTest]]: [MySQL] 874 pass(es).
[ View ]

A reroll of #8 since #1994080: Previous Button not working from step 4 to step 1 in file_entity_add_upload form got in. It also uses FILE_TYPE_NONE for files which can't have their types automatically determined.

Status:Needs review» Reviewed & tested by the community

Applied to July 22 dev and working, thanks.

Status:Reviewed & tested by the community» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue summary:View changes

Removed link to unrelated issue