Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 291
Total: 291

Author Topic: Edits and category changes zero's file size.  (Read 1173 times)

0 Members and 1 Guest are viewing this topic.

Offline Zaphod

  • Downloads Pro Customer
  • Member
  • *****
  • Posts: 36
    • View Profile
    • Three Generals Squad
Edits and category changes zero's file size.
« on: March 12, 2021, 11:45:50 am »

Hi all, I found a niggle when I created a testing download area for testing new game maps (Left for Dead 2 Campaigns). here is the scene:- Maps are uploaded to a testing sub category, those that are played and tested as good are then edited to a different sub-category this is fine except the file-size is now reported as 0 Bytes, a quick workaround is to view the properties of the file in question copy the file-size find the entry in the database and edit the file-size manually. Obviously this is less than desirable, the clean alternative is to re-upload the file when changing the category, the same thing occurs when editing the description of the download. I also suspect that when re-uploading the file it creates a duplicate of the file in the SMF/downloads/0 directory (in my case) when I looked I do see two file entries with identical sizes and suspect one is an orphan.

I haven't deleted the older file in case of you know what.
I did write a query with a counter to move any file in the category id (source) and change the id to category (destination) and zeroing the file count in source and adding the file count to the destination category count so as to match reported files as actual numbers.

Again this will do a clean fix, but is time consuming and I hate messing with a database unless I have to.

I feel the best solution is to have a silent update to the  "edit file option" or not zero the file-size when editing the entry for category changes or spelling error on description etc.

I have used for some time the free version but never maintained it, someone else did that, but due to the large file sizes of Left for Dead 2 campaigns many exceed the php file size limits. What we did in the past was to upload to a local directory via ftp and use the upload url to display file then edit database to show file size.

Love the pro version has many features I love but now do not want to edit things like adding a game screenshot due to the file-size being zeroed.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Edits and category changes zero's file size.
« Reply #1 on: March 12, 2021, 01:12:28 pm »
Yes that was a bug! A recent issue caused by file upload url filesize changes.

Has been fixed in latest update.
5.0.5a
!Fixed filesize edit bug when editing a file for SMF 2.0 going to zero when no uploads
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Zaphod

  • Downloads Pro Customer
  • Member
  • *****
  • Posts: 36
    • View Profile
    • Three Generals Squad
Re: Edits and category changes zero's file size.
« Reply #2 on: March 12, 2021, 01:42:48 pm »
Thank you :)  :)  :)  :)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5464 Views
Last post April 01, 2009, 09:44:04 pm
by Wegg
0 Replies
3402 Views
Last post July 14, 2009, 12:07:07 pm
by Wegg
2 Replies
3438 Views
Last post December 15, 2010, 06:15:23 am
by marcbkk
1 Replies
3096 Views
Last post June 07, 2011, 06:39:11 am
by SMFHacks
2 Replies
4008 Views
Last post September 14, 2012, 10:23:56 am
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal