Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uploading Photos
Message
De
07/06/2013 10:13:01
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/06/2013 07:31:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01575739
Message ID:
01575832
Vues:
30
>Greetings All,
>
>I "think" I would like to allow the user to upload photos of their employees. I plan on storing the jpeg files in their own directory (.ie. photos) and have the object source property on the employee page point to it (i.e. c:\dash\photos\empid1234.jpeg.
>
>1. Is this recommended "best practice".

Just make sure that you store a relative path, not the absolute path. Because your app may be seen as being on different disks from different workstations, and if it's on a UNC, you don't even have a drive letter. Using a path at C:\som\ewhe\re would lead to errors almost right away, as you surely don't have a copy of everything on each user's C: drive.

Now there's a question of "relative to what". You may want to store a path to pictures root folder somewhere (per, and combine that with the relative path to get the physical path that you'd use to fill the .picture property of your image control. Or, for that matter, any other place where you may want to use these files.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform