Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uploading Photos
Message
From
07/06/2013 10:13:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/06/2013 07:31:16
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01575739
Message ID:
01575832
Views:
35
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform