I posted this in the forums but havent seen any feedback. I am guessing this is a bug.

We started out our site in private file system mode and then changed the focus of the site a bit and wanted everything public. The switch went fine as we changed all out urls in the node content but then we hit a problem. We cannot upload files through the upload.module anymore. The system says it uploads but when you look in the directory there is nothing there. When we switch back to private the uploading functionality returns and we upload files that appear in the file directory.

Is there somewhere that the private setting is being cached or stored that is breaking things? Is this a bug?

Comments

killes@www.drop.org’s picture

Title: Switching from 'private' to 'public' breaks upload.module » allow switching from 'private' to 'public' file downloads.
Category: bug » feature

From the settings page:

If you want any sort of access control on the downloading of files, this needs to be set to private. You can change this at any time, however all download URLs will change and there may be unexpected problems so it is not recommended.

This is simply a feature which isn't implemented.

jeffrey.dalton’s picture

so the "unexpected problems" is you cant upload files anymore if you switch this?

killes@www.drop.org’s picture

Well, I certainly did not expect that particular problem, so it fits the description.

jeffrey.dalton’s picture

Category: feature » bug

I did some more digging on this one and it seems the problem is with the part of the upload.module that generates the temp address for previewing the attached file/image in the body area before submitting. If this bug is corrected it would make it possible to switch between public and private settings for file handling. This would then seem to be a bug... as forcing this decision once for all time at install on a site is a bit heavy handed eh?

It seems the files do upload once the node is saved but the temp address functions do not work properly for previewing prior to node save unless file settings are switched back to the original setting (private in this case).

jeffrey.dalton’s picture

Version: 4.7.2 » 4.7.3

I did some more digging on this one and it seems the problem is with the part of the upload.module that generates the temp address for previewing the attached file/image in the body area before submitting. If this bug is corrected it would make it possible to switch between public and private settings for file handling. This would then seem to be a bug... as forcing this decision once for all time at install on a site is a bit heavy handed eh?

It seems the files do upload once the node is saved but the temp address functions do not work properly for previewing prior to node save unless file settings are switched back to the original setting (private in this case).

magico’s picture

Version: 4.7.3 » x.y.z

Following #1 it is certainly a feature request.

@ivisage-dev: if you find that what is needed is just to code a few lines of code, you could make a patch and it might enter the queue. Enough persons will be able to test this "feature" that, AFAIK is really usefull.

Stay marked as "bug" to call some attention, but I really think that this is a feature...

L4san’s picture

Version: x.y.z » 7.x-dev

Still a bug?

Stay marked as "bug" to call some attention

marcingy’s picture

Category: bug » feature

Change to feature to correctly categorise

drewish’s picture

Status: Active » Fixed

i don't really think this is a problem any longer. the only reason you can't switch the setting is you'll break your URLs.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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