Renaming File Names |
12/29/2010 1:34:36 PM |
PHPRunner General questions | |
H
horsey_kim author
Link to the manual for the suggested code: Manual's Renaming Uploaded files |
|
T
|
tedwilder 1/5/2011 |
Link to the manual for the suggested code: Manual's Renaming Uploaded files Not but I understand that it is difficult to use record id as part of the name, from the add screen. I think the record id is not created until after the record is saved. But here is how I worked around it. I did a two step process. First on the add screen have all your fields you want without the upload field. Then when the record is saved, send it to the edit screen of that record and include the upload field on that screen. This will allow the add screen to create a record ID, that will allow the edit screen to upload and rename the file. If you have been successful in using the RECORD ID as part of the upload files name in the add screen, PLEASE let me know. I am always looking for better ways to accomplish something. I value your input <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=55401&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> Kim
|
H
|
horsey_kim author 1/5/2011 |
Great Idea!! I do have a question on table locking. What if you have a website that say 25 people might be on at the same time (classified or some social network), would table locking slow down the process for everyone? I have not used table locking before and this idea has got me curious if it would work for what I need. |