Closed (fixed)
Project:
Examples for Developers
Component:
File Example
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2010 at 13:57 UTC
Updated:
29 Dec 2010 at 22:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedSession variable storage is an example implementation of a file storage in Drupal 7. It is part of the Examples module, that you probably have installed.
I find it interesting that it doesn't work :)
Comment #2
rfay@droplet, can you please say exactly what you're doing and what fails?
Comment #3
droplet commentedthanks for all replies. thought this is a core function before.
my test:
1. fresh installation
2. active file examples
3. change core field storage to "Session variable storage"
4. create a node and upload a file
Apache/2.2.12 (Ubuntu) , PHP 5.2.10
Drupal & modules are Dev. version (up to date)
Comment #4
rfayWow, I had no idea that providing an additional streamwrapper would activate that streamwrapper for field storage! Incredible. Not sure how good that is.
I will try to take some time at some point to investigate this, but it's probably not terribly important right now.
Comment #5
rfayThings to do as a result of this issue:
1. (easy) Change the name of the session variable storage so it includes the word "example" to encourage people not to use it.
2. Fix the problem described in this issue. You *should* be able to save at least a small file.
3. D7 core should not just offer *every* streamwrapper instance for file storage (I don't think)
Comment #6
rfayThis should fix #1 and #2. Unfortunately, it will not be able to store arbitrary files - only text files will work because the underlying storage is string storage.
Comment #7
rfayCommitted: http://drupal.org/cvs?commit=465054