troubleshooting Question

Attach File

Avatar of SaLz
SaLz asked on
2 Comments1 Solution462 ViewsLast Modified:
Hi guys :)

I made a news system and in add news form i would like to have an Attach File option:
- You would have a browse button for a file and it would then upload it to a specified directory.
- Next to the Browse button i would like to have a FileName field, in which you would enter a more appropriate name for the file.

I am using MySql, so i guess there would be two fields, something like FilePath and FileName.

In the news display it would then show "Attached File: FileName", if there is a file attached, or it wouldn't show the "Attached File:" if there was no file attached to the news.

Also a simple check, if a file with same name exists in the upload dir, and then warn the admin to change the filename would be required i guess :)

How can that be done (code wise)?
Thank you,
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros