6 replies [Last post]
burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Hello,

I just used an 'attach file' option to stick a file up. However, I'm used to these social network do-da's like Facebook and MySpace etc, so didn't think twice about giving it a really generic filename (in this case 'screendump.jpg'). Then I had a sudden panic when I saw it had uploaded to 'http://csscreator.com/files/screendump.jpg'. Does that mean I've just automatically overwritten any files previously named 'screendump.jpg' from a forum?

Also, does this mean it best to name attached files uniquely. Such as with my username and then the file name or something?

Thanks,

John

Have YOU said Hello yet?
The CSSCreator Hello Thread

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 7 years 4 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Sounds like a drupal bug.

Sounds like a drupal bug. Uploaded files really do need to be given a unique name - or at least give each user their own namespace.

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Drupal Bug

Hi Chris,

I can some examples of 'Drupal Bugs' on the web, but no definition. What's a Drupal Bug then? I realise it's nothing I can do or fix, clearly it's a site thing, just curious.

Thank you,

John

Have YOU said Hello yet?
The CSSCreator Hello Thread

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 7 years 4 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Drupal is the underlying CMS

Drupal is the underlying CMS on which this site is built. Uploading is either a module within drupal or part of another module. Either way, it shouldn't really be possible (it may not be of course Smile) for one user to overwrite the content created by another user.

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Cross.jpg

D'you know, I reckon this still goes on!

Last file I tried to upload went to the directory http://csscreator.com/files/

I occassionally do this and then reference that file in my post dragging it in as an image which works. I'm just curious though, say below we've got an image I've attached and included called 'cross.jpg', are you then able to change that just by uploading a file called cross.jpg yourself?

Personally I've taken to naming all my files with my username as a prefix in the hope of avoiding this, but it would still be quite an easy mistake to make right?

Does anyone want to try uploading cross.jpg to see if it changes this image?

AttachmentSize
cross.jpg 1.34 KB

Have YOU said Hello yet?
The CSSCreator Hello Thread

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Solved

Ok, nevermind!

http://csscreator.com/node/25120

I tried to download this guys files but whilst they're listed as seen on the OP, they're actually named with numbers just before the extension, presumably to reflect how many files by that name exist already and distinguish them.

Either way, it's answered my question,

Cheers,

John

Have YOU said Hello yet?
The CSSCreator Hello Thread

nazar2k2
nazar2k2's picture
Offline
newbie
india
Last seen: 10 years 14 weeks ago
india
Joined: 2009-07-10
Posts: 6
Points: 0

Better provide unique name

hai,

It would be better if you provide unique name for each file such that the files can be easily identified with the name which avoids overwritten of files.

Mod edit/ Promotional links removed. Links are available to members in their signature line after a period of time on the forum.