In the interests of unifying and simplifying useage for content contributors I'd like to disable the default "Upload" option.

That way all users must upload or reference existing via IMCE.

Is this possible / planned?
If not might that become possible in future releases?

Thanks.

Comments

quicksketch’s picture

This isn't planned because FileField Sources is heavily dependent upon the existing upload widget (even though it may not seem like it). Additionally uploading through IMCE is not supported at all (you may notice you can only browse when using it with FileField), because IMCE does not properly manage its file references. Generally speaking it's actually a very dangerous thing to have installed, because users can delete files willynilly regardless of if they are in use or not.

quicksketch’s picture

Status: Active » Closed (won't fix)
entrigan’s picture

What about an option to default it to an alternative source.

For Example I may want to encourage users to use IMCE by having the the default option.

treasury’s picture

Status: Closed (won't fix) » Fixed
StatusFileSize
new23.55 KB

put this code into your theme css. it will hide the default upload and show the browse link (to imce) by default.

#edit-field-teaserimage-0-upload-wrapper .filefield-upload, #edit-field-teaserimage-0-upload-wrapper .description, .filefield-sources-list{
display:none !important;
}

.filefield-source, .filefield-source-imce{
display:block !important;
}

quicksketch’s picture

Category: feature » support

Note that with the approach, you still can't upload through IMCE, since uploading is disabled when used as a file browser for FileField Sources.

Status: Fixed » Closed (fixed)

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

fxmasa’s picture

But you can enable it by editing this function at the end of imce.inc file.

function filefield_source_imce_custom_process(&$imce) {
// Disable uploading, thumbnails, delete, and other unnecessary features.
$imce['perm']['subnav'] = 0;
$imce['perm']['upload'] = TRUE;
$imce['perm']['thumb'] = 0;
$imce['perm']['delete'] = TRUE;
$imce['perm']['resize'] = 0;
}

quicksketch’s picture

Component: User interface » General