Posted by jeffrey.dalton on August 6, 2006 at 4:53pm
Jump to:
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | upload.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
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.
#2
so the "unexpected problems" is you cant upload files anymore if you switch this?
#3
Well, I certainly did not expect that particular problem, so it fits the description.
#4
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).
#5
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).
#6
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...
#7
Still a bug?
Stay marked as "bug" to call some attention
#8
Change to feature to correctly categorise
#9
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.
#10
Automatically closed -- issue fixed for two weeks with no activity.