Jump to content

[SOLVED] Glich in the board software.


Recommended Posts

Hi!

I really love PHP and I love this board! HOWEVER, I don't like the board software. In my last question for the board, I had occasion to upload a PHP file and a GIF image. The board software gave me an error and said I had already uploaded the file and to try again. Only it wouldn't let me try to upload the files again! I had to load my topic again and click on reply again. It didn't matter though, because I could never upload the files! even under different file names, it wouldn't let me. This is besides the fact that I had never uploaded either file before. I use PHPbb on my own board and I've never been unhappy with it. While this forum software is easyon the eyes, PHPbb is much better!

Thanks,

Paul

Link to comment
https://forums.phpfreaks.com/topic/127780-solved-glich-in-the-board-software/
Share on other sites

If the filename already exists, it won't let you upload it.  I do think there is a bug - or rather, lack of feature would be more accurate - that if you do reach that point, there's no way to remove that file from the list of files to be uploaded, so you have to refresh and start all over.

test

 

Hmm...

mysql> SELECT filename FROM phpfreaks_smf.smf_attachments WHERE id_attach = 5390;
+---------------+
| filename      |
+---------------+
| test12345.txt |
+---------------+
1 row in set (0.00 sec)

 

[root@phpfreaks attachments]# ls -l | grep test12345.txt
-rw-r--r-- 1 apache apache      14 Oct 10 09:15 test12345.txt

 

It doesn't change the filenames...

 

[attachment deleted by admin]

Let's try again. I changed a setting...

 

Seems to work now:

 

mysql> SELECT * FROM phpfreaks_smf.smf_attachments WHERE filename = 'test12345.txt';
+-----------+----------+---------+-----------+-----------------+---------------+------+-----------+-------+--------+---------+-----------+-----------+----------+
| id_attach | id_thumb | id_msg  | id_member | attachment_type | filename      | size | downloads | width | height | fileext | mime_type | id_folder | approved |
+-----------+----------+---------+-----------+-----------------+---------------+------+-----------+-------+--------+---------+-----------+-----------+----------+
|      5390 |        0 | 1011052 |         0 |               0 | test12345.txt |   14 |         2 |     0 |      0 | txt     |           |         1 |        1 |
|      5391 |        0 | 1011058 |         0 |               0 | test12345.txt |   14 |         0 |     0 |      0 | txt     |           |         1 |        1 |
+-----------+----------+---------+-----------+-----------------+---------------+------+-----------+-------+--------+---------+-----------+-----------+----------+
2 rows in set (0.00 sec)

 

[root@phpfreaks attachments]# ls -l | grep test12345.txt
-rw-r--r-- 1 apache apache      14 Oct 10 09:22 5391_test12345_txtfa44e97a6f62559dc499e4c2b7700bdf
-rw-r--r-- 1 apache apache      14 Oct 10 09:15 test12345.txt

 

 

For the record, the setting "Encrypt stored filenames" under "Attachment settings" must be checked.

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.